事件:'错误'


【Event: 'error'

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

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