diff --git a/doc/api/stream.md b/doc/api/stream.md index 04f412b6f7bbae..28a4a05ef0db0a 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])`