WritableStreamDefaultWriter

open external class WritableStreamDefaultWriter<W>(stream: WritableStream<W>)(source)

This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink.

MDN Reference

Constructors

Link copied to clipboard
constructor(stream: WritableStream<W>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun abort(reason: JsError? = definedExternally)
Link copied to clipboard
fun abortAsync(reason: JsError? = definedExternally): Promise<Void>
Link copied to clipboard
suspend fun close()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun write(chunk: W = definedExternally)
Link copied to clipboard
fun writeAsync(chunk: W = definedExternally): Promise<Void>