gameplate - v2.3.0
    Preparing search index...

    Interface TimerHandle

    Handle to a scheduled timer. Returned by Timers.after / Timers.every.

    interface TimerHandle {
        cancel: () => void;
        active: () => boolean;
        remaining: () => number;
    }
    Index

    Properties

    cancel: () => void

    Cancel the timer. Idempotent; safe to call from inside its own callback.

    active: () => boolean

    true until the timer has fired (one-shot) or been cancelled.

    remaining: () => number

    Seconds of game time until the next fire. 0 once elapsed.