mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
doc: remove obsolete stream API selection text
PR-URL: https://github.com/nodejs/node/pull/42586 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
This commit is contained in:
1 parent
9b3aad1cdd
commit
08aab07982
1 file changed
-5
@@ -896,11 +896,6 @@ to consume data from a single stream. Specifically, using a combination
|
||||
of `on('data')`, `on('readable')`, `pipe()`, or async iterators could
|
||||
lead to unintuitive behavior.
|
||||
|
||||
`readable.pipe()` provides the easiest way to consume stream data. Developers
|
||||
that require more fine-grained control over the transfer and generation of data
|
||||
can use the [`EventEmitter`][] and `readable.on('readable')`/`readable.read()`
|
||||
or the `readable.pause()`/`readable.resume()` APIs.
|
||||
|
||||
#### Class: `stream.Readable`
|
||||
|
||||
<!-- YAML
|
||||
|
||||
Reference in new issue
Block a user