From 490ceae8860208ef218c78d002e03e34c98af3bb Mon Sep 17 00:00:00 2001 From: Igor Mikhalev Date: Sat, 8 Aug 2020 10:01:36 +0300 Subject: [PATCH] doc: add a note about possible missing lines to readline.asyncIterator Fixes: https://github.com/nodejs/node/issues/33463 --- doc/api/readline.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/api/readline.md b/doc/api/readline.md index d34ca6e91e7f61..af5e3147d41f4d 100644 --- a/doc/api/readline.md +++ b/doc/api/readline.md @@ -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`