'error' 事件


如果工作线程抛出未捕获的异常,则会触发 'error' 事件。 在这种情况下,工作线程将被终止。

The 'error' event is emitted if the worker thread throws an uncaught exception. In that case, the worker will be terminated.