事件:'exit'
【Event: 'exit'】
exitCode<integer>
'exit' 事件在工作线程停止后触发。如果工作线程通过调用 process.exit() 退出,exitCode 参数就是传入的退出码。如果工作线程被终止,exitCode 参数为 1。
【The 'exit' event is emitted once the worker has stopped. If the worker
exited by calling process.exit(), the exitCode parameter is the
passed exit code. If the worker was terminated, the exitCode parameter is
1.】
这是任何 Worker 实例发出的最终事件。
【This is the final event emitted by any Worker instance.】