-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: fix description of _writev() #28690
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1754,8 +1754,9 @@ methods only. | |
|
||
The `writable._writev()` method may be implemented in addition to | ||
`writable._write()` in stream implementations that are capable of processing | ||
multiple chunks of data at once. If implemented, the method will be called with | ||
all chunks of data currently buffered in the write queue. | ||
multiple chunks of data at once. If implemented, the first chunk will be written with | ||
`_write()`. When the initial write is complete, buffered chunks in the write queue, if available, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it’s not just the first chunk, but rather, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When the queue is empty. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't current docs correct in that case @addaleax @lpinca ? Though still bit ambiguous. Does below seems more correct -
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @erabhimanyu I think your suggestion is still confusing. In particular this sentence
If there is buffered data even a single chunk, |
||
will be written all at once with `_writev()`. | ||
|
||
The `writable._writev()` method is prefixed with an underscore because it is | ||
internal to the class that defines it, and should never be called directly by | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty sure our linter will complain that this line is longer than 80 chars and has trailing white space. At least I hope it will flag those things. Run
make lint-md
(orvcbuild lint-md
if on Windows) to run the documentation linter locally.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also: Welcome @tyof45 and thanks for the pull request!