diff options
author | James M Snell <jasnell@gmail.com> | 2017-06-15 18:31:11 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-06-20 21:48:47 +0300 |
commit | 1fcb76e8f2f05fc084337da097a17b06cc7d0c68 (patch) | |
tree | d85ba4a8ef921d4f6834c37e553fc6696053d8b1 /doc | |
parent | eaaec57332c466b39a12245de3b31d002250bec1 (diff) |
cluster: remove deprecated property
PR-URL: https://github.com/nodejs/node/pull/13702
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/cluster.md | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/doc/api/cluster.md b/doc/api/cluster.md index c7d8359ac0c..721b33a7e18 100644 --- a/doc/api/cluster.md +++ b/doc/api/cluster.md @@ -451,40 +451,6 @@ if (cluster.isMaster) { } ``` -### worker.suicide -<!-- YAML -added: v0.7.0 -deprecated: v6.0.0 -changes: - - version: v7.0.0 - pr-url: https://github.com/nodejs/node/pull/3747 - description: Accessing this property will now emit a deprecation warning. ---> - -> Stability: 0 - Deprecated: Use [`worker.exitedAfterDisconnect`][] instead. - -An alias to [`worker.exitedAfterDisconnect`][]. - -Set by calling `.kill()` or `.disconnect()`. Until then, it is `undefined`. - -The boolean `worker.suicide` is used to distinguish between voluntary -and accidental exit, the master may choose not to respawn a worker based on -this value. - -```js -cluster.on('exit', (worker, code, signal) => { - if (worker.suicide === true) { - console.log('Oh, it was just voluntary – no need to worry'); - } -}); - -// kill worker -worker.kill(); -``` - -This API only exists for backwards compatibility and will be removed in the -future. - ## Event: 'disconnect' <!-- YAML added: v0.7.9 |