Skip to main content

Class: WatchdogTerminateBeforeEventSignal

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.

Constructors

new WatchdogTerminateBeforeEventSignal()

private new WatchdogTerminateBeforeEventSignal(): WatchdogTerminateBeforeEventSignal

Returns

WatchdogTerminateBeforeEventSignal

Methods

subscribe()

subscribe(callback): (arg) => void

Parameters

ParameterType
callback(arg) => void

Returns

Function

Parameters
ParameterType
argWatchdogTerminateBeforeEvent
Returns

void

Remarks

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

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


unsubscribe()

unsubscribe(callback): void

Parameters

ParameterType
callback(arg) => void

Returns

void

Remarks

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

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