A getter method that returns a number representing the current time (at the time this function was called) according to the scheduler's own internal clock.
An internal ID used to track the latest asynchronous task such as those
coming from setTimeout
, setInterval
, requestAnimationFrame
, and
others.
Schedules a function, work
, for execution. May happen at some point in
the future, according to the delay
parameter, if specified. May be passed
some context object, state
, which will be passed to the work
function.
The given arguments will be processed an stored as an Action object in a queue of actions.
A function representing a task, or some unit of work to be executed by the Scheduler.
A subscription in order to be able to unsubscribe the scheduled work.
Generated using TypeDoc
A flag to indicate whether the Scheduler is currently executing a batch of queued actions.
{boolean}