Classes
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.
Type Parameters
Type Parameter | Default type |
---|---|
W | any |
Constructors
new WritableStream()
new WritableStream<W
>(underlyingSink
?, strategy
?): WritableStream
<W
>
Parameters
Parameter | Type |
---|---|
underlyingSink ? | UnderlyingSink <W > |
strategy ? | QueuingStrategy <W > |
Returns
Properties
Property | Modifier | Type | Description |
---|---|---|---|
locked | readonly | boolean | MDN Reference |
Methods
abort()
abort(reason
?): Promise
<void
>
Parameters
Parameter | Type |
---|---|
reason ? | any |
Returns
Promise
<void
>
close()
close(): Promise
<void
>
Returns
Promise
<void
>
getWriter()
getWriter(): WritableStreamDefaultWriter
<W
>