UNPKG

454 BTypeScriptView Raw
1interface SchedulerOptions {
2 deferEvents: boolean;
3}
4export declare class Scheduler {
5 private processingEvent;
6 private queue;
7 private initialized;
8 private options;
9 constructor(options?: Partial<SchedulerOptions>);
10 initialize(callback?: () => void): void;
11 schedule(task: () => void): void;
12 clear(): void;
13 private flushEvents;
14 private process;
15}
16export {};
17//# sourceMappingURL=scheduler.d.ts.map
\No newline at end of file