diff --git a/doc/api/stream.md b/doc/api/stream.md index f7566858ee594b..9539457daf8749 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -954,6 +954,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])`