close

suspend fun close()(source)

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

MDN Reference