AsyncScheduler.d.ts 617 B

12345678910111213141516171819
  1. import { Scheduler } from '../Scheduler';
  2. import { AsyncAction } from './AsyncAction';
  3. export declare class AsyncScheduler extends Scheduler {
  4. actions: Array<AsyncAction<any>>;
  5. /**
  6. * A flag to indicate whether the Scheduler is currently executing a batch of
  7. * queued actions.
  8. * @type {boolean}
  9. */
  10. active: boolean;
  11. /**
  12. * An internal ID used to track the latest asynchronous task such as those
  13. * coming from `setTimeout`, `setInterval`, `requestAnimationFrame`, and
  14. * others.
  15. * @type {any}
  16. */
  17. scheduled: any;
  18. flush(action: AsyncAction<any>): void;
  19. }