Skip to content

Commit 6a36159

Browse files
cola119danielleadams
authored andcommittedJan 3, 2023
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 3f6f8f9 commit 6a36159

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
@@ -880,8 +880,10 @@ pass.unpipe(writable);
880880
// readableFlowing is now false.
881881

882882
pass.on('data', (chunk) => { console.log(chunk.toString()); });
883+
// readableFlowing is still false.
883884
pass.write('ok'); // Will not emit 'data'.
884885
pass.resume(); // Must be called to make stream emit 'data'.
886+
// readableFlowing is now true.
885887
```
886888

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

0 commit comments

Comments
 (0)
Please sign in to comment.