WritableStreamDefaultWriter
admin/discounts.internal.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
abort(reason?
): Promise
<void
>
Parameters
reason
anyReturns
Promise
<void
>
Promise
Promise<void>Requiredclose
close(): Promise
<void
>
Returns
Promise
<void
>
Promise
Promise<void>RequiredreleaseLock
releaseLock(): void
Returns
void
void
voidwrite
write(chunk?
): Promise
<void
>
Parameters
chunk
WReturns
Promise
<void
>
Promise
Promise<void>RequiredWas this section helpful?