From 8392e8cdfb71e8cc03e110f7b30ed104b3b136bd Mon Sep 17 00:00:00 2001 From: Victor Widell Date: Sun, 30 Mar 2014 12:34:45 +0200 Subject: [PATCH] doc: improve readLine.pause() The docs for readLine.pause are misleading. I seriously spent hours on this. If it isn't a bug, at least it should be well documented. Someone else stumbled on this too: http://stackoverflow.com/questions/21341050/pausing-readline-in-node-js Reviewed-by: Trevor Norris Reviewed-by: Chris Dickinson --- doc/api/readline.markdown | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/readline.markdown b/doc/api/readline.markdown index 6aab28679b..055bc39bdf 100644 --- a/doc/api/readline.markdown +++ b/doc/api/readline.markdown @@ -125,6 +125,8 @@ Example usage: Pauses the readline `input` stream, allowing it to be resumed later if needed. +Note that this doesn't immediately pause the stream of events. Several events may be emitted after calling `pause`, including `line`. + ### rl.resume() Resumes the readline `input` stream.