Skip to content

Commit 2407a7a

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 31098a4 commit 2407a7a

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)