From 7ed297d5288aaba159fe9f088c5d5fe54888c1e2 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 6 Mar 2018 22:33:44 -0800 Subject: [PATCH] doc: remove warning against readable/readable.read Remove suggestion to avoid `readable` event and `readabe.read()` method. No explanation was provided for this suggestion. Backport-PR-URL: https://github.com/nodejs/node/pull/22380 PR-URL: https://github.com/nodejs/node/pull/19193 Reviewed-By: Matteo Collina Reviewed-By: Chen Gang Reviewed-By: Brian White Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Gibson Fahnestock --- doc/api/stream.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/doc/api/stream.md b/doc/api/stream.md index 7738e210c9acd8..6b51585e691f93 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -934,9 +934,6 @@ readable.on('readable', () => { }); ``` -Avoid the use of the `'readable'` event and the `readable.read()` method in -favor of using either `readable.pipe()` or the `'data'` event. - A Readable stream in object mode will always return a single item from a call to [`readable.read(size)`][stream-read], regardless of the value of the `size` argument.