Skip to main content
Skip to main content

WritableStream

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

Type parameters

WobjectRequired

Properties

lockedbooleanRequired

Methods

abort

MDN Reference

Parameters

reasonany

Returns

PromisePromise<void>Required

close

MDN Reference

Returns

PromisePromise<void>Required

getWriter

MDN Reference

Returns

WritableStreamDefaultWriterWritableStreamDefaultWriter<W>Required
Was this section helpful?