doc: add a note about possible missing lines to readline.asyncIterator

Fixes: https://github.com/nodejs/node/issues/33463

PR-URL: https://github.com/nodejs/node/pull/34675
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
Igor Mikhalev authored and Richard Lau committed 2022-04-03 13:47:11 -04:00
1 parent 518a49c0c6
commit 333eda8d03
1 file changed
+4
+4
View File
@@ -352,6 +352,10 @@ async function processLineByLine() {
}
```
`readline.createInterface()` will start to consume the input stream once
invoked. Having asynchronous operations between interface creation and
asynchronous iteration may result in missed lines.
### rl.line
<!-- YAML
added: v0.1.98