VirtualTimeScheduler

class VirtualTimeScheduler extends AsyncScheduler { protected static frameTimeFactor: number constructor(SchedulerAction: typeof AsyncAction = VirtualAction as any, maxFrames: number = Number.POSITIVE_INFINITY) frame: number index: number maxFrames: number flush(): void }

Subclasses

  • TestScheduler

Static Properties

PropertyTypeDescription
frameTimeFactor

Constructor

constructor(SchedulerAction: typeof AsyncAction = VirtualAction as any, maxFrames: number = Number.POSITIVE_INFINITY)

Parameters

SchedulerAction

Optional. Default is VirtualAction as any.

Type: typeof AsyncAction.

maxFrames

Optional. Default is Number.POSITIVE_INFINITY.

Type: number.

Properties

PropertyTypeDescription
frame
index
maxFrames Declared in constructor.

Methods

flush()

Prompt the Scheduler to execute all of its queued actions, therefore clearing its queue.

flush(): void

Parameters

There are no parameters.

Returns

void: