worker.stdout


这是一个可读流,它包含在工作线程中写入到 process.stdout 的数据。如果在 Worker 构造函数中没有传入 stdout: true,那么数据将被传输到父线程的 process.stdout 流中。

【This is a readable stream which contains data written to process.stdout inside the worker thread. If stdout: true was not passed to the Worker constructor, then data is piped to the parent thread's process.stdout stream.】