scheduler.d.ts 454 B

1234567891011121314151617
  1. interface SchedulerOptions {
  2. deferEvents: boolean;
  3. }
  4. export 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. }
  16. export {};
  17. //# sourceMappingURL=scheduler.d.ts.map