Cancel all currently scheduled one-time jobs, excluding those scheduled with onExit
.
Recurring jobs are not affected.
Schedule a one-time job to be run during a future frame.
How many frames to wait before firing.
A function to be called when the Dispatch job fires.
Schedule a one-time job to run during the current frame.
A function to be called when the Dispatch job fires.
Schedule a one-time job to run when the engine shuts down.
A function to be called when the Dispatch job fires.
Schedule a recurring job to run during the Render phase of each frame, before the backbuffer is flipped to the screen.
A non-async
function to be called when the job fires.
Scheduling options for this job.
Schedule a recurring job to run during the Update phase of each frame. Use an async
callback to spread an update over multiple frames.
A function to be called when the job fires.
Scheduling options for this job.
Generated using TypeDoc
The Dispatch API provides the means by which the game can manage the event loop.