AsapAction.d.ts 669 B

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