Skip to content
Prev Previous commit
Next Next commit
including the 'close' event as optional
  • Loading branch information
Jenna Vuong committed May 2, 2016
commit bcc8bd2baf353fe8ffb5710170ccea3781733099
6 changes: 4 additions & 2 deletions doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,11 @@ Examples of writable streams include:

#### Event: 'close'

Emitted when the stream and any of its underlying resources (a file descriptor, for example) have been closed. The event indicates that no more events will be emitted, and no further computation will occur.
Emitted when the stream and any of its underlying resources (a file descriptor,
for example) have been closed. The event indicates that no more events will be
emitted, and no further computation will occur.

Not all streams will emit the `'close'` event.
Not all streams will emit the `'close'` event as the `'close'` event is optional.

#### Event: 'drain'

Expand Down