We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45c5ad7 commit 5616f22Copy full SHA for 5616f22
doc/api/stream.md
@@ -1284,8 +1284,10 @@ changes:
1284
* `encoding` {string} Encoding of string chunks. Must be a valid
1285
`Buffer` encoding, such as `'utf8'` or `'ascii'`.
1286
1287
-Passing `chunk` as `null` signals the end of the stream (EOF), after which no
1288
-more data can be written.
+Passing `chunk` as `null` signals the end of the stream (EOF) and behaves the
+same as `readable.push(null)`, after which no more data can be written. The EOF
1289
+signal is put at the end of the buffer and any buffered data will still be
1290
+flushed.
1291
1292
The `readable.unshift()` method pushes a chunk of data back into the internal
1293
buffer. This is useful in certain situations where a stream is being consumed by
0 commit comments