QueueAction.d.ts 734 B

1234567891011121314151617
  1. import { AsyncAction } from './AsyncAction';
  2. import { Subscription } from '../Subscription';
  3. import { QueueScheduler } from './QueueScheduler';
  4. import { SchedulerAction } from '../types';
  5. /**
  6. * We need this JSDoc comment for affecting ESDoc.
  7. * @ignore
  8. * @extends {Ignored}
  9. */
  10. export declare class QueueAction<T> extends AsyncAction<T> {
  11. protected scheduler: QueueScheduler;
  12. protected work: (this: SchedulerAction<T>, state?: T) => void;
  13. constructor(scheduler: QueueScheduler, work: (this: SchedulerAction<T>, state?: T) => void);
  14. schedule(state?: T, delay?: number): Subscription;
  15. execute(state: T, delay: number): any;
  16. protected requestAsyncId(scheduler: QueueScheduler, id?: any, delay?: number): any;
  17. }