Interface WritableStream<W>
interface WritableStream<W> {
locked: boolean;
abort(reason?: any): Promise<void>;
close(): Promise<void>;
getWriter(): WritableStreamDefaultWriter<W>;
}
locked: boolean;
abort(reason?: any): Promise<void>;
close(): Promise<void>;
getWriter(): WritableStreamDefaultWriter<W>;
}
Type Parameters
Hierarchy
- WritableStream (view full)
Methods
abort
close
getWriter
- get
Writer (): WritableStreamDefaultWriter<W> Returns WritableStreamDefaultWriter<W>
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