diff --git a/doc/api/cluster.md b/doc/api/cluster.md index 936a535977c5..6d3f9e6fc659 100644 --- a/doc/api/cluster.md +++ b/doc/api/cluster.md @@ -489,6 +489,8 @@ While a worker is alive, this is the key that indexes it in added: v0.11.14 --> +* Returns: {boolean} + This function returns `true` if the worker is connected to its primary via its IPC channel, `false` otherwise. A worker is connected to its primary after it has been created. It is disconnected after the `'disconnect'` event is emitted. @@ -499,6 +501,8 @@ has been created. It is disconnected after the `'disconnect'` event is emitted. added: v0.11.14 --> +* Returns: {boolean} + This function returns `true` if the worker's process has terminated (either because of exiting or being signaled). Otherwise, it returns `false`.