Skip to content

Commit 490ceae

Browse files
committed
doc: add a note about possible missing lines to readline.asyncIterator
Fixes: nodejs#33463
1 parent ac5773b commit 490ceae

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
@@ -356,6 +356,10 @@ async function processLineByLine() {
356356
}
357357
```
358358

359+
`readline.createInterface()` will start to consume the input stream once
360+
invoked. Having asynchronous operations between interface creation and
361+
asynchronous iteration may result in missed lines.
362+
359363
### `rl.line`
360364
<!-- YAML
361365
added: v0.1.98

0 commit comments

Comments
 (0)