mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
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:
1 parent
518a49c0c6
commit
333eda8d03
1 file changed
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user