summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRichard Lau <riclau@uk.ibm.com>2019-09-27 20:32:40 -0400
committerRich Trott <rtrott@gmail.com>2019-09-28 06:53:52 -0700
commit95792a79892471e2c691c071e85d7fea29aa40cd (patch)
treec1aa9453b59136d92e7a5ceca7fb2abaf7cd8d13 /doc
parent35bfe0e414f4d4b79ca0820c3b0dd41e61d893be (diff)
downloadandroid-node-v8-95792a79892471e2c691c071e85d7fea29aa40cd.tar.gz
android-node-v8-95792a79892471e2c691c071e85d7fea29aa40cd.tar.bz2
android-node-v8-95792a79892471e2c691c071e85d7fea29aa40cd.zip
Revert "stream: invoke callback before emitting error always"
This reverts commit 3de5eae6dbe503485b95bdeb8bddbd67e4613d59. PR-URL: https://github.com/nodejs/node/pull/29741 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/stream.md3
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/api/stream.md b/doc/api/stream.md
index 48b478a58e..d4dbe54dbc 100644
--- a/doc/api/stream.md
+++ b/doc/api/stream.md
@@ -571,8 +571,7 @@ The `writable.write()` method writes some data to the stream, and calls the
supplied `callback` once the data has been fully handled. If an error
occurs, the `callback` *may or may not* be called with the error as its
first argument. To reliably detect write errors, add a listener for the
-`'error'` event. If `callback` is called with an error, it will be called
-before the `'error'` event is emitted.
+`'error'` event.
The return value is `true` if the internal buffer is less than the
`highWaterMark` configured when the stream was created after admitting `chunk`.