Skip to content

Commit 0f05173

Browse files
committed
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 3dfce5c commit 0f05173

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
@@ -955,9 +955,6 @@ readable.on('readable', () => {
955955
});
956956
```
957957

958-
Avoid the use of the `'readable'` event and the `readable.read()` method in
959-
favor of using either `readable.pipe()` or the `'data'` event.
960-
961958
A Readable stream in object mode will always return a single item from
962959
a call to [`readable.read(size)`][stream-read], regardless of the value of the
963960
`size` argument.

0 commit comments

Comments
 (0)