For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/WatchdogTerminateBeforeEventSignal.md.

Class: WatchdogTerminateBeforeEventSignal experimental

event

Beta

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): (arg0) => void

World Mutation Early Execution Beta

Parameters

callback

(arg0) => void

Tip

This closure is called with restricted-execution privilege.

Tip

此闭包以受限执行权限调用。

Returns

Tip

Closure that is called with restricted-execution privilege.

Tip

以受限执行权限调用的闭包。

(arg0) => 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.

添加一个回调,当脚本运行时因违反性能看门狗系统而被终止时调用。


unsubscribe()

unsubscribe(callback): void

World Mutation Early Execution Beta

Parameters

callback

(arg0) => void

Tip

This closure is called with restricted-execution privilege.

Tip

此闭包以受限执行权限调用。

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.

移除一个在脚本运行时因违反性能看门狗系统而被终止时调用的回调。

同领域相关