1 | import { AsyncAction } from './AsyncAction';
|
2 | import { Subscription } from '../Subscription';
|
3 | import { AsyncScheduler } from './AsyncScheduler';
|
4 | import { SchedulerAction } from '../types';
|
5 | import { TimerHandle } from './timerHandle';
|
6 | export declare class VirtualTimeScheduler extends AsyncScheduler {
|
7 | maxFrames: number;
|
8 |
|
9 | static frameTimeFactor: number;
|
10 | |
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | frame: number;
|
17 | |
18 |
|
19 |
|
20 |
|
21 | index: number;
|
22 | |
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 | constructor(schedulerActionCtor?: typeof AsyncAction, maxFrames?: number);
|
30 | /**
|
31 | * Prompt the Scheduler to execute all of its queued actions, therefore
|
32 | * clearing its queue.
|
33 | * @return {void}
|
34 | */
|
35 | flush(): void;
|
36 | }
|
37 | export declare class VirtualAction<T> extends AsyncAction<T> {
|
38 | protected scheduler: VirtualTimeScheduler;
|
39 | protected work: (this: SchedulerAction<T>, state?: T) => void;
|
40 | protected index: number;
|
41 | protected active: boolean;
|
42 | constructor(scheduler: VirtualTimeScheduler, work: (this: SchedulerAction<T>, state?: T) => void, index?: number);
|
43 | schedule(state?: T, delay?: number): Subscription;
|
44 | protected requestAsyncId(scheduler: VirtualTimeScheduler, id?: any, delay?: number): TimerHandle;
|
45 | protected recycleAsyncId(scheduler: VirtualTimeScheduler, id?: any, delay?: number): TimerHandle | undefined;
|
46 | protected _execute(state: T, delay: number): any;
|
47 | private static sortActions;
|
48 | }
|
49 | //# sourceMappingURL=VirtualTimeScheduler.d.ts.map |
\ | No newline at end of file |