worker.terminate()
尽快停止工作线程中的所有 JavaScript 执行。返回在触发 'exit'
事件 时完成的退出代码的 Promise。
¥Stop all JavaScript execution in the worker thread as soon as possible.
Returns a Promise for the exit code that is fulfilled when the
'exit'
event is emitted.
尽快停止工作线程中的所有 JavaScript 执行。返回在触发 'exit'
事件 时完成的退出代码的 Promise。
¥Stop all JavaScript execution in the worker thread as soon as possible.
Returns a Promise for the exit code that is fulfilled when the
'exit'
event is emitted.