close method
The close()
method of the WritableStream interface closes the
associated stream. All chunks written before this method is called are
sent before the returned promise is fulfilled.
This is equivalent to getting a WritableStreamDefaultWriter with WritableStream.getWriter, calling WritableStreamDefaultWriter.close on it.
Implementation
external JSPromise<JSAny?> close();