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 <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>
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

Lines changed: 4 additions & 0 deletions
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)