事件:'disconnect'


\Event: 'disconnect'

新增于: v0.7.7

类似于 cluster.on('disconnect') 事件,但特定于此工作进程。

\Similar to the cluster.on('disconnect') event, but specific to this worker.

cluster.fork().on('disconnect', () => {
 // Worker has disconnected
}); 

AltStyle によって変換されたページ (->オリジナル) /