From 0f05173f49ab31aafc48c0046d9b0cb5e38fb6be 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. 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 e1642a013a7568..01a1713dadca32 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -955,9 +955,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.