Skip to main content
Skip to main content

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.

Type parameters

WobjectRequired

Properties

closedPromise<undefined>Required
desiredSizenull | numberRequired
readyPromise<undefined>Required

Methods

abort

Parameters

reasonany

Returns

PromisePromise<void>Required

close

Returns

PromisePromise<void>Required

releaseLock

Returns

voidvoid

write

Parameters

chunkW

Returns

PromisePromise<void>Required
Was this section helpful?