Skip to content

Commit

Permalink
doc: document the finish event
Browse files Browse the repository at this point in the history
Since the stream implementer is not expected to overwrite
.end() the finish event is necessary in order to know when
no more data can be written
  • Loading branch information
AndreasMadsen authored and isaacs committed Dec 26, 2012
1 parent d68ee22 commit ce30683
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/api/stream.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,11 @@ without buffering again. Listen for it when `stream.write()` returns
Emitted when the underlying resource (for example, the backing file
descriptor) has been closed. Not all streams will emit this.

### Event: 'finish'

When `end()` is called and there are no more chunks to write, this
event is emitted.

### Event: 'pipe'

* `source` {Readable Stream}
Expand Down

0 comments on commit ce30683

Please sign in to comment.