write

inline suspend fun <W : JsAny?> WritableStreamDefaultWriter<W>.write(chunk: W)(source)
inline suspend fun <W : JsAny?> WritableStreamDefaultWriter<W>.write()(source)

The write() method of the WritableStreamDefaultWriter interface writes a passed chunk of data to a WritableStream and its underlying sink, then returns a Promise that resolves to indicate the success or failure of the write operation.

MDN Reference