nx.js
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.

MDN Reference

Type Parameters

Type ParameterDefault type
Wany

Constructors

new WritableStream()

new WritableStream<W>(underlyingSink?, strategy?): WritableStream<W>

Parameters

ParameterType
underlyingSink?UnderlyingSink<W>
strategy?QueuingStrategy<W>

Returns

WritableStream<W>

Properties

PropertyModifierTypeDescription
lockedreadonlybooleanMDN Reference

Methods

abort()

abort(reason?): Promise<void>

MDN Reference

Parameters

ParameterType
reason?any

Returns

Promise<void>


close()

close(): Promise<void>

MDN Reference

Returns

Promise<void>


getWriter()

getWriter(): WritableStreamDefaultWriter<W>

MDN Reference

Returns

WritableStreamDefaultWriter<W>

On this page