close method
The close()
method of the
WritableStreamDefaultWriter interface closes the associated writable
stream.
The underlying sink will finish processing any previously-written chunks, before invoking the close behavior. During this time any further attempts to write will fail (without erroring the stream).
Implementation
external JSPromise<JSAny?> close();