Cancels the execution of a function run that was previously
scheduled via the run function.
This function can't be called in read-only mode.
Function callback to run when the tickDelay time criteria is met.
An opaque identifier that can be used with the clearRun
function to cancel the execution of this run.
Runs a specified function at a future time. This is frequently used to implement delayed behaviors and game loops.
This function can't be called in read-only mode.
Functional code that will run when this interval occurs.
OptionaltickInterval: numberAn interval of every N ticks that the callback will be called upon.
An opaque handle that can be used with the clearRun method to stop the run of this function on an interval.
Functional code that will run when this timeout occurs.
OptionaltickDelay: numberAmount of time, in ticks, before the interval will be called.
An opaque handle that can be used with the clearRun method to stop the run of this function on an interval.
Runs a set of code at a future time specified by tickDelay.
This function can't be called in read-only mode.
A class that provides system-level events and functions.