nx.js
Classes

WritableStreamDefaultWriter

This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the writer to the WritableStream ensuring that no other streams can write to the underlying sink.

MDN Reference

Type Parameters

Type ParameterDefault type
Wany

Constructors

new WritableStreamDefaultWriter()

new WritableStreamDefaultWriter<W>(stream): WritableStreamDefaultWriter<W>

Parameters

ParameterType
streamWritableStream<W>

Returns

WritableStreamDefaultWriter<W>

Properties

PropertyModifierTypeDescription
closedreadonlyPromise<undefined>MDN Reference
desiredSizereadonlynull | numberMDN Reference
readyreadonlyPromise<undefined>MDN 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>


releaseLock()

releaseLock(): void

MDN Reference

Returns

void


write()

write(chunk?): Promise<void>

MDN Reference

Parameters

ParameterType
chunk?W

Returns

Promise<void>

On this page