From ffc7a00c1082251dbe0397dc65b1d9c7b88ab878 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Tue, 23 Jul 2019 09:45:20 +0200 Subject: [PATCH] doc: add documentation for stream.destroyed PR-URL: https://github.com/nodejs/node/pull/28815 Reviewed-By: Rich Trott Reviewed-By: Trivikram Kamat Reviewed-By: Luigi Pinca Reviewed-By: Matteo Collina --- doc/api/stream.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/doc/api/stream.md b/doc/api/stream.md index f33a18f9aef8c9..0053ed81fee928 100644 --- a/doc/api/stream.md +++ b/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 + + +* {boolean} + +Is `true` after [`writable.destroy()`][writable-destroy] has been called. + ##### writable.end([chunk][, encoding][, callback]) + +* {boolean} + +Is `true` after [`readable.destroy()`][readable-destroy] has been called. + ##### readable.isPaused()