Browse Source

writable stream api has destroySoon() for exiting after data queue has been drained

v0.7.4-release
Zachary Scott 14 years ago
committed by Ryan Dahl
parent
commit
67913a0232
  1. 6
      doc/api/streams.markdown

6
doc/api/streams.markdown

@ -170,3 +170,9 @@ Same as above but with a `buffer`.
### stream.destroy()
Closes the underlying file descriptor. Stream will not emit any more events.
### stream.destroySoon()
After the write queue is drained, close the file descriptor. `destroySoon()`
can still destroy straight away, as long as there is no data left in the queue
for writes.

Loading…
Cancel
Save