Node.js new Worker
Node.js new Worker(filename[, options])
- options < Object>
- eval < boolean> If true, interpret the first argument to the constructor as a script that is executed once the worker is online.
- stdin < boolean> If this is set to true, then worker.stdin will provide a writable stream whose contents will appear as process.stdin inside the Worker. By default, no data is provided.
- stdout < boolean> If this is set to true, then worker.stdout will not automatically be piped through to process.stdout in the parent.
- stderr < boolean> If this is set to true, then worker.stderr will not automatically be piped through to process.stderr in the parent.
更多内容请参考：Node.js worker_threads 工作线程，或者通过 点击对应菜单 进行查看；