Uh oh!
There was an error while loading. Please reload this page.
doc: update stream.md - #9468
Conversation
stream.md is updated to explain the return value of writable.write(chunk) precisely. Fixes: #9247
| 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 be paused until the [`'drain'`][] event is emitted. However, the |
There was a problem hiding this comment.
suggest: "should be paused" -> "should stop"
I find the use of the word paused confusing, because there is a stream.pause() method, but calling it is not the "paused" referred to in the documentation.
| 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 |
stream.md is updated to explain the return value of writable.write(chunk) precisely. Fixes: #9247
tanujasawant
commented
Nov 4, 2016
@sam-github@cjihrig please check, thanks for the feedback :) |
| `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 value is only advisory and the writable stream will | ||
| unconditionally accept `chunk` even if it has not not been allowed to drain. |
There was a problem hiding this comment.
suggestion: accept -> accept and buffer
stream.md is updated to explain the return value of writable.write(chunk) precisely. Fixes: #9247
tanujasawant
commented
Nov 8, 2016
@ronkorving please check now, thanks! |
silverwind
commented
Nov 18, 2016
ping @ronkorving. |
binki
left a comment
There was a problem hiding this comment.
“internal buffer does not exceed highWaterMark” needs to convey the meaning “internal buffer is smaller than highWaterMark”.
ronkorving
commented
Dec 21, 2016
Apologies, my GitHub notifications are starting to look like my inbox. LGTM! |
silverwind
commented
Dec 21, 2016
Thanks! Landed with wrapping and commit message fixed in f347dad. |
Checklist
Affected core subsystem(s)
doc
Description of change
stream.md is updated to explain the return value of
writable.write(chunk) precisely.
Fixes: #9247