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
W
objectRequiredProperties
closed
Promise<undefined>RequireddesiredSize
null | numberRequiredready
Promise<undefined>RequiredMethods
abort
Parameters
reason
anyReturns
Promise
Promise<void>Requiredclose
Returns
Promise
Promise<void>RequiredreleaseLock
Returns
void
voidwrite
Parameters
chunk
WReturns
Promise
Promise<void>RequiredWas this section helpful?