Skip to content

Commit 333eda8

Browse files
mikhalev-imrichardlau
authored andcommitted
doc: add a note about possible missing lines to readline.asyncIterator
Fixes: #33463 PR-URL: #34675 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Anto Aravinth <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 518a49c commit 333eda8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/api/readline.md

+4
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,10 @@ async function processLineByLine() {
352352
}
353353
```
354354

355+
`readline.createInterface()` will start to consume the input stream once
356+
invoked. Having asynchronous operations between interface creation and
357+
asynchronous iteration may result in missed lines.
358+
355359
### rl.line
356360
<!-- YAML
357361
added: v0.1.98

0 commit comments

Comments
 (0)