8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a7b63b commit 85d2a2aCopy full SHA for 85d2a2a
doc/api/stream.md
@@ -440,10 +440,12 @@ occurs, the `callback` *may or may not* be called with the error as its
440
first argument. To reliably detect write errors, add a listener for the
441
`'error'` event.
442
443
-The return value indicates whether the written `chunk` was buffered internally
444
-and the buffer has exceeded the `highWaterMark` configured when the stream was
445
-created. If `false` is returned, further attempts to write data to the stream
446
-should be paused until the [`'drain'`][] event is emitted.
+The return value is `true` if the internal buffer does not exceed
+`highWaterMark` configured when the stream was created after admitting `chunk`.
+If `false` is returned, further attempts to write data to the stream should
+stop until the [`'drain'`][] event is emitted. However, the `false` return
447
+value is only advisory and the writable stream will unconditionally accept and
448
+buffer `chunk` even if it has not not been allowed to drain.
449
450
A Writable stream in object mode will always ignore the `encoding` argument.
451