doc: clarification on the 'close' event
authorJames M Snell <jasnell@gmail.com>
Fri, 14 Aug 2015 17:46:43 +0000 (10:46 -0700)
committerJames M Snell <jasnell@gmail.com>
Wed, 26 Aug 2015 01:51:53 +0000 (18:51 -0700)
per: https://github.com/joyent/node/pull/8209

originally submitted by @jeromew

Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/2378

doc/api/stream.markdown

index d32a25e..2022ef2 100644 (file)
@@ -230,8 +230,11 @@ readable.on('end', function() {
 
 #### Event: 'close'
 
-Emitted when the underlying resource (for example, the backing file
-descriptor) has been closed. Not all streams will emit this.
+Emitted when the stream and any of its underlying resources (a file
+descriptor, for example) have been closed, no more events will be
+emitted, and no further computation will occur.
+
+Not all streams will emit the 'close' event.
 
 #### Event: 'error'