onExit

abstract fun onExit(action: (NewScriptThread) -> Unit)

当一个线程退出时会调用此回调函数

Receiver

Parameters

action

需要执行的函数