Skip to content
Permalink
Browse files

doc: add documentation for stream.destroyed

PR-URL: #28815
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
  • Loading branch information...
ronag authored and targos committed Jul 23, 2019
1 parent 5d5c89a commit ffc7a00c1082251dbe0397dc65b1d9c7b88ab878
Showing with 18 additions and 0 deletions.
  1. +18 −0 doc/api/stream.md
@@ -380,6 +380,15 @@ the `'drain'` event before destroying the stream.
Implementors should not override this method,
but instead implement [`writable._destroy()`][writable-_destroy].

##### writable.destroyed
<!-- YAML
added: v8.0.0
-->

* {boolean}

Is `true` after [`writable.destroy()`][writable-destroy] has been called.

##### writable.end([chunk][, encoding][, callback])
<!-- YAML
added: v0.9.4
@@ -916,6 +925,15 @@ will be ignored.
Implementors should not override this method, but instead implement
[`readable._destroy()`][readable-_destroy].

##### readable.destroyed
<!-- YAML
added: v8.0.0
-->

* {boolean}

Is `true` after [`readable.destroy()`][readable-destroy] has been called.

##### readable.isPaused()
<!-- YAML
added: v0.11.14

0 comments on commit ffc7a00

Please sign in to comment.
You can’t perform that action at this time.