Script API - v26.50.24
    Preparing search index...

    Class WatchdogTerminateBeforeEventSignalBeta

    Manages callbacks that are connected to a callback that will be called when a script runtime is being terminated due to a violation of the performance watchdog system.

    export class WatchdogTerminateBeforeEventSignal {
    private constructor();
    subscribe(callback: (arg0: WatchdogTerminateBeforeEvent) => void): (arg0: WatchdogTerminateBeforeEvent) => void;
    unsubscribe(callback: (arg0: WatchdogTerminateBeforeEvent) => void): void;
    }
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Parameters

      Returns (arg0: WatchdogTerminateBeforeEvent) => void

      Closure that is called with restricted-execution privilege.

      Adds a callback that will be called when a script runtime is being terminated due to a violation of the performance watchdog system.

      no-restricted-execution - This function can't be called in restricted-execution mode.

      early-execution-allowed - This function can be called in early-execution mode.

    • Parameters

      Returns void

      Removes a callback from being called when a script runtime is being terminated due to a violation of the performance watchdog system.

      no-restricted-execution - This function can't be called in restricted-execution mode.

      early-execution-allowed - This function can be called in early-execution mode.