Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AsyncScheduler.d.ts 1.0KB

123456789101112131415161718192021222324252627
  1. import { Scheduler } from '../Scheduler';
  2. import { Action } from './Action';
  3. import { AsyncAction } from './AsyncAction';
  4. import { SchedulerAction } from '../types';
  5. import { Subscription } from '../Subscription';
  6. export declare class AsyncScheduler extends Scheduler {
  7. static delegate?: Scheduler;
  8. actions: Array<AsyncAction<any>>;
  9. /**
  10. * A flag to indicate whether the Scheduler is currently executing a batch of
  11. * queued actions.
  12. * @type {boolean}
  13. * @deprecated internal use only
  14. */
  15. active: boolean;
  16. /**
  17. * An internal ID used to track the latest asynchronous task such as those
  18. * coming from `setTimeout`, `setInterval`, `requestAnimationFrame`, and
  19. * others.
  20. * @type {any}
  21. * @deprecated internal use only
  22. */
  23. scheduled: any;
  24. constructor(SchedulerAction: typeof Action, now?: () => number);
  25. schedule<T>(work: (this: SchedulerAction<T>, state?: T) => void, delay?: number, state?: T): Subscription;
  26. flush(action: AsyncAction<any>): void;
  27. }