closeAsync

external fun closeAsync(): Promise<Void>(source)

The close() method of the WritableStreamDefaultWriter interface closes the associated writable stream.

MDN Reference