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.

MDN Reference

Type parameters

WobjectRequired

Properties

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

Methods

abort

MDN Reference

Parameters

reasonany

Returns

PromisePromise<void>Required

close

MDN Reference

Returns

PromisePromise<void>Required

releaseLock

MDN Reference

Returns

voidvoid

write

MDN Reference

Parameters

chunkW

Returns

PromisePromise<void>Required
Was this section helpful?