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.
Please login to continue.