mirror of https://github.com/nodejs/node.git
writable stream api has destroySoon() for exiting after data queue has been drained
parent
5e78f57087
commit
67913a0232
|
@ -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…
Reference in New Issue