WritableStream

open external class WritableStream<W>(underlyingSink: UnderlyingSink<W> = definedExternally, strategy: QueuingStrategy<W> = definedExternally) : Transferable(source)

This Streams API interface provides a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing.

MDN Reference

Constructors

Link copied to clipboard
constructor(underlyingSink: UnderlyingSink<W> = definedExternally, strategy: QueuingStrategy<W> = definedExternally)

Properties

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