| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| handlers, and removing all pipe destinations by calling the | ||
| [`stream.unpipe()`][] method. | ||
| * If there are pipe destinations, by removing all pipe destinations by | ||
| calling the [`stream.unpipe()`][] method. |
There was a problem hiding this comment.
only calling unpipe() will make stream to paused mode. see the following example.
const { Readable, Writable } = require('stream');
const r = new Readable();
const w = new Writable();
r._read = () => {};
w._write = () => {};
r.pipe(w);
r.on('data', () => {});
r.unpipe();
console.log(r._readableState.flowing); // the output is false
Sorry, something went wrong.
There was a problem hiding this comment.
quick grammar nit on this: by removing all pipe destinations by ... the sentence should be something like:
Multiple pipe destinations may be removed by calling the [`stream.unpipe()`][] method.
Sorry, something went wrong.
There was a problem hiding this comment.
fixed.
Sorry, something went wrong.
| buffered. Once the `callback` is invoked, the stream will emit a [`'drain'`][] | ||
| event. If a stream implementation is capable of processing multiple chunks of | ||
| data at once, the `writable._writev()` method should be implemented. | ||
| buffered. When the `callback` is invoked, the stream maybe will emit a |
There was a problem hiding this comment.
Emitting a 'drain' event need to meet more conditions. See the source code of writable stream.
Sorry, something went wrong.
There was a problem hiding this comment.
maybe will -> might
Sorry, something went wrong.
There was a problem hiding this comment.
fixed.
Sorry, something went wrong.
Sorry, something went wrong.
PR-URL: nodejs#18375 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: #18375 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: #18375 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: #18375 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: #18375 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: #18375 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: #18375 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: nodejs#18375 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
| Back | FazBrowse Home | New Git URL |
I made a comment on every change.
Checklist
Affected core subsystem(s)
stream