Skip to content

Commit d805d5a

Browse files
cola119ruyadorno
authored andcommitted
doc: clarify changes in readableFlowing
PR-URL: #45554 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent 128c9f6 commit d805d5a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/api/stream.md

+2
Original file line numberDiff line numberDiff line change
@@ -882,8 +882,10 @@ pass.unpipe(writable);
882882
// readableFlowing is now false.
883883

884884
pass.on('data', (chunk) => { console.log(chunk.toString()); });
885+
// readableFlowing is still false.
885886
pass.write('ok'); // Will not emit 'data'.
886887
pass.resume(); // Must be called to make stream emit 'data'.
888+
// readableFlowing is now true.
887889
```
888890

889891
While `readable.readableFlowing` is `false`, data may be accumulating

0 commit comments

Comments
 (0)