A class that provides system-level events and functions.

Hierarchy

  • System

Constructors

Methods

Constructors

  • Returns System

Methods

  • Parameters

    • callback: (() => void)

      Function callback to run when the tickDelay time criteria is met.

        • (): void
        • Returns void

    Returns number

    An opaque identifier that can be used with the clearRun function to cancel the execution of this run.

    Remarks

    Runs a specified function at a future time. This is frequently used to implement delayed behaviors and game loops.