node/doc/api
Robert Nagy 311e12b962 stream: fix multiple destroy calls
Previously destroy could be called multiple times causing inconsistent
and hard to predict behavior. Furthermore, since the stream _destroy
implementation can only be called once, the behavior of applying destroy
multiple times becomes unclear.

This changes so that only the first destroy() call is executed and any
subsequent calls are noops.

PR-URL: https://github.com/nodejs/node/pull/29197
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2020-02-29 09:34:43 +01:00
..
addons.md doc: reword section title in addons.md 2020-02-12 00:20:34 -08:00
assert.md doc: update assert.rejects() docs with a validation function example 2020-02-24 03:49:12 -08:00
async_hooks.md async_hooks: add store arg in AsyncLocalStorage 2020-02-27 15:00:23 -05:00
buffer.md doc: correct getting an ArrayBuffer's length 2020-02-07 12:06:42 +01:00
child_process.md doc: fix several child_process doc typos 2020-01-19 13:12:14 -05:00
cli.md cli: --perf-prof only works on Linux 2020-02-23 10:08:22 -08:00
cluster.md doc,cluster: use code markup/markdown in headers 2019-12-26 21:37:25 -08:00
console.md doc,console: use code markup/markdown in headers 2019-12-26 21:37:26 -08:00
crypto.md doc,crypto: re-document oaepLabel option 2020-02-23 01:25:40 -04:00
debugger.md doc: reword possessive form of Node.js in debugger.md 2020-02-17 17:32:53 -08:00
deprecations.md http: move OutboundMessage.prototype.flush to EOL 2020-02-24 08:46:37 -08:00
dgram.md doc: standardize on "host name" in dgram.md 2020-01-14 10:17:19 -08:00
dns.md doc: improve dns introduction 2019-12-27 06:14:41 -08:00
documentation.md doc: remove multiple consecutive blank lines 2019-08-31 15:27:58 -07:00
domain.md doc,domain: use code markup/markdown in headers 2019-12-26 21:39:24 -08:00
errors.md errors: remove unused ERR_SOCKET_CANNOT_SEND error 2020-02-27 21:01:32 -05:00
esm.md module: package "exports" error refinements 2020-02-18 13:34:40 +02:00
events.md 2020-01-07, Version v13.6.0 (Current) 2020-01-08 00:10:43 +01:00
fs.md fs: add fs/promises alias module 2020-02-18 22:15:50 -08:00
globals.md doc: use code markup/markdown in headers in globals documentation 2019-12-26 21:39:26 -08:00
http2.md doc: clarify http2.connect authority details 2020-02-26 16:19:49 -08:00
http.md doc: reword possessive form of Node.js in http.md 2020-02-17 17:32:59 -08:00
https.md doc: fix typos in doc/api/https.md 2020-02-16 16:58:39 +01:00
index.md wasi: introduce initial WASI support 2019-11-30 18:06:39 +01:00
inspector.md doc,inspector: use code markup/markdown in headers 2019-12-26 21:39:27 -08:00
intl.md tools: support full-icu by default 2019-10-03 15:21:26 -07:00
modules.md doc: reword possessive form of Node.js in modules.md 2020-02-12 00:20:39 -08:00
n-api.md n-api: rename 'promise' parameter to 'value' 2020-01-30 21:24:11 -08:00
net.md doc,net: reword Unix domain path paragraph in net.md 2020-02-09 15:37:01 -10:00
os.md doc: standardize on "host name" in os.md 2020-01-14 10:17:30 -08:00
path.md doc: add explanatory to path.resolve description 2020-01-22 19:21:57 -08:00
perf_hooks.md 2020-02-18, Version 13.9.0 (Current) 2020-02-18 12:40:21 -08:00
policy.md doc: remove dashes 2019-10-26 08:39:41 -07:00
process.md 2020-02-18, Version 13.9.0 (Current) 2020-02-18 12:40:21 -08:00
punycode.md doc,punycode: use code markup/markdown in headers 2019-12-26 21:39:30 -08:00
querystring.md doc,querystring: use code markup/markdown in headers 2019-12-26 21:39:30 -08:00
readline.md doc: updated YAML version representation in readline.md 2020-02-25 13:53:22 -08:00
repl.md doc: reword possessive form of Node.js in repl.md 2020-02-12 00:20:37 -08:00
report.md 2020-02-18, Version 13.9.0 (Current) 2020-02-18 12:40:21 -08:00
stream.md stream: fix multiple destroy calls 2020-02-29 09:34:43 +01:00
string_decoder.md doc,string_decoder: use code markup/markdown in headers 2019-12-26 21:39:32 -08:00
synopsis.md doc: move Usage and Example to same header level 2019-07-09 19:45:20 -07:00
timers.md doc,timers: use code markup/markdown in headers 2019-12-26 21:39:32 -08:00
tls.md tls: expose SSL_export_keying_material 2020-02-23 01:21:04 -04:00
tracing.md doc: remove dashes 2019-10-26 08:39:41 -07:00
tty.md doc,tty: use code markup/markdown in headers 2019-12-26 21:39:33 -08:00
url.md doc: standardize on "host name" in url.md 2020-01-14 10:17:33 -08:00
util.md doc,util: revise util.md introductory paragraph 2020-02-09 15:39:33 -10:00
v8.md doc: clarify that v8.serialize() is not deterministic 2020-01-30 16:35:47 -08:00
vm.md vm: implement vm.measureMemory() for per-context memory measurement 2020-02-26 17:52:39 +08:00
wasi.md doc,wasi: use code markup/markdown in headers 2019-12-26 21:39:35 -08:00
worker_threads.md 2020-02-18, Version 13.9.0 (Current) 2020-02-18 12:40:21 -08:00
zlib.md doc: update zlib doc 2020-02-26 16:56:16 -08:00