Skip to main content
Latest
class VirtualTimeScheduler
extends AsyncScheduler
import { VirtualTimeScheduler } from "https://deno.land/x/rxjs@v1.0.2/mod.ts";

Constructors

new
VirtualTimeScheduler(schedulerActionCtor?: AsyncAction, maxFrames?: number)

This creates an instance of a VirtualTimeScheduler. Experts only. The signature of this constructor is likely to change in the long run.

Properties

frame: number

The current frame for the state of the virtual scheduler instance. The 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.

deprecated
index: number

Used internally to examine the current virtual action index being processed.

Methods

flush(): void

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

Static Properties

deprecated
frameTimeFactor: number