11 lines
334 B
TypeScript
11 lines
334 B
TypeScript
import { Subscription } from './Subscription';
|
|
import { Action } from './scheduler/Action';
|
|
export interface Scheduler {
|
|
now(): number;
|
|
schedule<T>(work: (state?: any) => Subscription | void, delay?: number, state?: any): Subscription;
|
|
flush(): void;
|
|
active: boolean;
|
|
actions: Action[];
|
|
scheduledId: number;
|
|
}
|