Skip to main content
Skip to main content

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

WobjectRequired

Properties

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

Methods

abort

abort(reason?): Promise<void>

Parameters

reasonany

Returns

Promise<void>

PromisePromise<void>Required

close

close(): Promise<void>

Returns

Promise<void>

PromisePromise<void>Required

releaseLock

releaseLock(): void

Returns

void

voidvoid

write

write(chunk?): Promise<void>

Parameters

chunkW

Returns

Promise<void>

PromisePromise<void>Required
Was this section helpful?