mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
correct documentation of Stream#destroy
This commit is contained in:
1 parent
8a9e8d60d2
commit
7accaeb490
1 file changed
+3
-2
@@ -174,8 +174,9 @@ Same as above but with a `buffer`.
|
||||
|
||||
### stream.destroy()
|
||||
|
||||
Closes the underlying file descriptor. Stream will not emit any more events.
|
||||
Any queued write data will not be sent.
|
||||
Closes the underlying file descriptor. Stream is no longer `writable` nor `readable`.
|
||||
the stream will not emit any more 'data', or 'end' events. Any queued write data will not be sent.
|
||||
the stream should emit 'close' event once it's resources have been disposed of.
|
||||
|
||||
### stream.destroySoon()
|
||||
|
||||
|
||||
Reference in new issue
Block a user