WatchdogTerminateBeforeEventSignal Class

Caution

This class is still in pre-release. Its signature may change or it may be removed in future releases.

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.

Methods

subscribe

subscribe(callback: (arg: WatchdogTerminateBeforeEvent) => void): (arg: WatchdogTerminateBeforeEvent) => void

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

Parameters

Returns (arg: WatchdogTerminateBeforeEvent) => void

Important

This function can't be called in read-only mode.

unsubscribe

unsubscribe(callback: (arg: WatchdogTerminateBeforeEvent) => void): void

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

Parameters

Important

This function can't be called in read-only mode.