Skip to content

Commit d117f5f

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. 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 5c21d16 commit d117f5f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

doc/api/stream.md

-3
Original file line numberDiff line numberDiff line change
@@ -942,9 +942,6 @@ readable.on('readable', () => {
942942
});
943943
```
944944

945-
Avoid the use of the `'readable'` event and the `readable.read()` method in
946-
favor of using either `readable.pipe()` or the `'data'` event.
947-
948945
A Readable stream in object mode will always return a single item from
949946
a call to [`readable.read(size)`][stream-read], regardless of the value of the
950947
`size` argument.

0 commit comments

Comments
 (0)