VirtualTimeScheduler
class VirtualTimeScheduler extends AsyncScheduler { }
constructor(schedulerActionCtor?: AsyncAction, maxFrames?: number);
frame: number;
index: number;
maxFrames: number;
flush(): void;
static frameTimeFactor: number;
§Constructors
§
new VirtualTimeScheduler(schedulerActionCtor?: AsyncAction, maxFrames?: number)
[src]This creates an instance of a VirtualTimeScheduler
. Experts only. The signature of
this constructor is likely to change in the long run.
@param schedulerActionCtor
The type of Action to initialize when initializing actions during scheduling.
@param maxFrames
The maximum number of frames to process before stopping. Used to prevent endless flush cycles.
§Properties
§
frame: number
[src]The current frame for the state of the virtual scheduler instance. The difference
between two "frames" is synonymous with the passage of "virtual time units". So if
you record scheduler.frame
to be 1
, then later, observe scheduler.frame
to be at 11
,
that means 10
virtual time units have passed.
§Methods
§
flush(): void
[src]Prompt the Scheduler to execute all of its queued actions, therefore clearing its queue.
@return