Skip to content

Commit 7ed297d

Browse files
TrottMylesBorins
authored andcommitted
doc: remove warning against readable/readable.read
Remove suggestion to avoid `readable` event and `readabe.read()` method. No explanation was provided for this suggestion. Backport-PR-URL: #22380 PR-URL: #19193 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Chen Gang <[email protected]> Reviewed-By: Brian White <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]>
1 parent 94d27e2 commit 7ed297d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

doc/api/stream.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -934,9 +934,6 @@ readable.on('readable', () => {
934934
});
935935
```
936936

937-
Avoid the use of the `'readable'` event and the `readable.read()` method in
938-
favor of using either `readable.pipe()` or the `'data'` event.
939-
940937
A Readable stream in object mode will always return a single item from
941938
a call to [`readable.read(size)`][stream-read], regardless of the value of the
942939
`size` argument.

0 commit comments

Comments
 (0)