Computers · Program API v1.2.0
    Preparing search index...

    Variable signalConst

    signal: AbortSignal

    AbortSignal for this run. Use it to clean up your own timers, listeners, or fetch calls. Built-in helpers already cooperate with cancellation. Escape, loss of control/access, closing the controller window, power-off, or GM loss ends the run.

    program.signal.addEventListener("abort", () => {
    // Release resources created by your Program.
    }, { once: true });