diff --git a/doc/api/stream.md b/doc/api/stream.md index c7925864cd63bd..3bff8b55afa813 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -952,6 +952,17 @@ added: v12.3.0 Getter for the property `objectMode` of a given `Writable` stream. +##### `writable[Symbol.asyncDispose]()` + + + +> Stability: 1 - Experimental + +Calls [`writable.destroy()`][writable-destroy] with an `AbortError` and returns +a promise that fulfills when the stream is finished. + ##### `writable.write(chunk[, encoding][, callback])`