Commit eda2560 1 parent 881d9be commit eda2560 Copy full SHA for eda2560
File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -167,11 +167,10 @@ again when more data is available.
167
167
The ` readable ` event is not emitted in the "flowing" mode with the
168
168
sole exception of the last one, on end-of-stream.
169
169
170
- Note that the ` 'readable' ` event indicates only that data * can* be
171
- read from the stream. It does not indicate whether there is actual
172
- data to be consumed. The callback passed to handle the ` 'readable' `
173
- event must be prepared to handle a ` null ` response from
174
- ` readable.read([size]) ` . For instance, in the following example, ` foo.txt `
170
+ The 'readable' event indicates that the stream has new information:
171
+ either new data is available or the end of the stream has been reached.
172
+ In the former case, ` .read() ` will return that data. In the latter case,
173
+ ` .read() ` will return null. For instance, in the following example, ` foo.txt `
175
174
is an empty file:
176
175
177
176
``` javascript
You can’t perform that action at this time.
0 commit comments