From 96f94adf4d56e7de04356a5293a37e73d8184912 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. --- 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.