Interface WritableStream<W>
interface WritableStream<W = any> {
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 Summary)
Methods
abort
close
getWriter
- getWriter(): 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