Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorNimit Aggarwal <nimitagg95@gmail.com>2019-09-02 10:52:19 +0300
committerRuben Bridgewater <ruben@bridgewater.de>2019-09-25 19:20:48 +0300
commit9e63f914da95b1daa73d595bd65ba6a5af8521e0 (patch)
tree0952e88b623ef0d6acb8630fcab7a38df2e35cde /doc/api
parent8474b82e3508e7d6a2e4af8d2bc2d3fc1edcd82a (diff)
doc: exitedAfterDisconnect value can be false
Fixed the documentation to reflect the changes in the default value of worker.exitedAfterDisconnect PR-URL: https://github.com/nodejs/node/pull/29404 Fixes: https://github.com/nodejs/node/issues/28837 Refs: https://github.com/nodejs/node/pull/3743 Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/cluster.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/api/cluster.md b/doc/api/cluster.md
index 979ddac5b92..06f730e3ae6 100644
--- a/doc/api/cluster.md
+++ b/doc/api/cluster.md
@@ -336,7 +336,9 @@ added: v6.0.0
* {boolean}
-Set by calling `.kill()` or `.disconnect()`. Until then, it is `undefined`.
+This property is `true` if the worker exited due to `.kill()` or
+`.disconnect()`. If the worker exited any other way, it is `false`. If the
+worker has not exited, it is `undefined`.
The boolean [`worker.exitedAfterDisconnect`][] allows distinguishing between
voluntary and accidental exit, the master may choose not to respawn a worker