-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
doc: fix Writable.write callback description #31812
Conversation
@nodejs/streams |
Clarifies a userland invariant until a better solution can be found. Also moves a misplaced sentence from _write to write. Refs: nodejs#31756 Refs: nodejs#31765
0cf3ff7
to
8c19c23
Compare
I think this depends on #31317. |
How so? This is a timing issue related to when and how the |
Perhaps I'm misunderstanding this? Note "always". Or does that mean that if the callback is called it will be called asynchronously? |
Ah now I see what you mean. That part was incorrectly written at And yes the "always" is a bit ambigious but I think the intention is that "is called it will be called asynchronously". Maybe removing "always" would amke it clearer? |
Co-Authored-By: Luigi Pinca <[email protected]>
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.
lgtm
Co-Authored-By: Luigi Pinca <[email protected]>
Clarifies a userland invariant until a better solution can be found. Also moves a misplaced sentence from _write to write. Refs: #31756 Refs: #31765 PR-URL: #31812 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
Landed in 7c524fb |
This does not land cleanly on v13.x. Could you please open a backport PR if it should land on that branch |
I think 75b30c6 must be backported first. Then this will land cleanly. |
75b30c6 is semver-major, so this should not be backported. |
Clarifies a userland invariant until a better
solution can be found.
Also moves a misplaced sentence from _write to
write.
Refs: #31756
Refs: #31765
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes