doc: clarify changes in readableFlowing

PR-URL: https://github.com/nodejs/node/pull/45554
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
This commit is contained in:
Kohei Ueno
2022-11-23 22:34:46 +09:00
committed by GitHub
parent 2a7635feb2
commit 3ebe7535b4

View File

@@ -882,8 +882,10 @@ pass.unpipe(writable);
// readableFlowing is now false.
pass.on('data', (chunk) => { console.log(chunk.toString()); });
// readableFlowing is still false.
pass.write('ok'); // Will not emit 'data'.
pass.resume(); // Must be called to make stream emit 'data'.
// readableFlowing is now true.
```
While `readable.readableFlowing` is `false`, data may be accumulating