Skip to content

Commit 9e63f91

Browse files
nimit95BridgeAR
authored andcommitted
doc: exitedAfterDisconnect value can be false
Fixed the documentation to reflect the changes in the default value of worker.exitedAfterDisconnect PR-URL: #29404 Fixes: #28837 Refs: #3743 Reviewed-By: David Carlier <[email protected]> Reviewed-By: Anto Aravinth <[email protected]>
1 parent 8474b82 commit 9e63f91

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/api/cluster.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,9 @@ added: v6.0.0
336336

337337
* {boolean}
338338

339-
Set by calling `.kill()` or `.disconnect()`. Until then, it is `undefined`.
339+
This property is `true` if the worker exited due to `.kill()` or
340+
`.disconnect()`. If the worker exited any other way, it is `false`. If the
341+
worker has not exited, it is `undefined`.
340342

341343
The boolean [`worker.exitedAfterDisconnect`][] allows distinguishing between
342344
voluntary and accidental exit, the master may choose not to respawn a worker

0 commit comments

Comments
 (0)