-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
stream: make readable & writable computed #31197
Conversation
5151533
to
3833c20
Compare
This comment has been minimized.
This comment has been minimized.
c55b3ca
to
e753f27
Compare
e1bcd2a
to
c968c49
Compare
ping @mcollina |
semver-major |
This comment has been minimized.
This comment has been minimized.
c2e76c0
to
46368c6
Compare
80ea96c
to
52f36d0
Compare
CITGM: https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/2254/ (queued) |
Co-Authored-By: Anna Henningsen <github@addaleax.net>
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.
Seems good to me.
This needs another @nodejs/tsc review |
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 - I would prefer to hear from @mafintosh before landing, but we can go ahead.
Lgtm from me also |
@@ -495,7 +495,8 @@ added: v11.4.0 | |||
|
|||
* {boolean} | |||
|
|||
Is `true` if it is safe to call [`writable.write()`][stream-write]. | |||
Is `true` if it is safe to call [`writable.write()`][stream-write], which means | |||
the stream has not been destroyed, errored or ended. |
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.
the stream has not been destroyed, errored or ended. | |
the stream has not been destroyed, errored, or ended. |
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.
^Non-blocking, in case that wasn't obvious. (FWIW, our Style Guide says to use serial commas.)
CITGM results look good. |
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 with the streams subject-matter-expert approval that it has.
Landed in e559842 |
This makes readable and writable automatically computed based on the stream state. Effectivly deprecating/discouraging manual management of this. Makes the properties more consistent and easier to reason about. Fixes: #29377 PR-URL: #31197 Refs: #29377 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
A remainder from a previous refactoring. Refs: nodejs#31197
This makes readable and writable automatically computed based
on the stream state.
Effectivly deprecating/discouraging manual management of this.
Makes the properties more consistent and easier to reason about.
Refs: #29377
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes