cluster.disconnect()

cluster.disconnect([callback])

  • callback <Function> called when all workers are disconnected and handles are closed

Calls .disconnect() on each worker in cluster.workers.

When they are disconnected all internal handles will be closed, allowing the master process to die gracefully if no other event is waiting.

The method takes an optional callback argument which will be called when finished.

This can only be called from the master process.

doc_Nodejs
2016-04-30 04:38:15
Comments
Leave a Comment

Please login to continue.