DEP0132:worker.terminate() 具有回调
¥DEP0132: worker.terminate()
with callback
类型:运行时
¥Type: Runtime
将回调传递给 worker.terminate()
已弃用。请改用返回的 Promise
,或监听工作进程的 'exit'
事件。
¥Passing a callback to worker.terminate()
is deprecated. Use the returned
Promise
instead, or a listener to the worker's 'exit'
event.