类:Worker
【Class: Worker】
- 继承: <EventEmitter>
Worker 对象包含有关工人的所有公共信息和方法。在主进程中,它可以通过 cluster.workers 获取。在工作进程中,它可以通过 cluster.worker 获取。
【A Worker object contains all public information and method about a worker.
In the primary it can be obtained using cluster.workers. In a worker
it can be obtained using cluster.worker.】