From 7eb73d301d0d99c2d20dd2f2c25bf5eddf7cd9b0 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Fri, 29 Mar 2019 21:42:02 +0100 Subject: [PATCH] doc: document the 'pause' and 'resume' events PR-URL: https://github.com/nodejs/node/pull/26999 Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater Signed-off-by: Beth Griggs --- doc/api/stream.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/doc/api/stream.md b/doc/api/stream.md index 156f09f374c5bf..66627abf6a9b8d 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -799,6 +799,14 @@ to push an invalid chunk of data. The listener callback will be passed a single `Error` object. +##### Event: 'pause' + + +The `'pause'` event is emitted when [`stream.pause()`][stream-pause] is called +and `readableFlowing` is not `false`. + ##### Event: 'readable' + +The `'resume'` event is emitted when [`stream.resume()`][stream-resume] is +called and `readableFlowing` is not `true`. + ##### readable.destroy([error])