Interface ICallbacksSettings

Optional settings applied when registering a callback.

interface ICallbacksSettings {
    name?: string;
    once?: boolean;
    protected?: boolean;
    timeout?: number;
}

Hierarchy (View Summary)

Properties

name?: string

Optional label for debugging.

once?: boolean

When true, the callback is removed automatically after the first execution.

false
protected?: boolean

When true, the callback cannot be removed via Callbacks.remove unless it is cleared internally (for example on Callbacks.destroy).

false
timeout?: number

Delay before the callback runs, in milliseconds.

undefined