Skip to content

Commit

Permalink
doc: add a note about possible missing lines to readline.asyncIterator
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mikhalev-im authored and richardlau committed Apr 3, 2022
1 parent 518a49c commit 333eda8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/api/readline.md
Expand Up @@ -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
Expand Down

0 comments on commit 333eda8

Please sign in to comment.