| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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.
Sorry, something went wrong.
| 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 |
There was a problem hiding this comment.
false -> false
Sorry, something went wrong.
stream.md is updated to explain the return value of writable.write(chunk) precisely. Fixes: #9247
|
@sam-github @cjihrig please check, thanks for the feedback :) |
Sorry, something went wrong.
| `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
Sorry, something went wrong.
stream.md is updated to explain the return value of writable.write(chunk) precisely. Fixes: #9247
|
@ronkorving please check now, thanks! |
Sorry, something went wrong.
There was a problem hiding this comment.
“internal buffer does not exceed highWaterMark” needs to convey the meaning “internal buffer is smaller than highWaterMark”.
Sorry, something went wrong.
|
Apologies, my GitHub notifications are starting to look like my inbox. LGTM! |
Sorry, something went wrong.
|
Thanks! Landed with wrapping and commit message fixed in f347dad. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
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