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
  • Loading branch information
mikhalev-im committed Aug 8, 2020
1 parent ac5773b commit 490ceae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/api/readline.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,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 490ceae

Please sign in to comment.