WritableStreamDefaultWriter
The WritableStreamDefaultWriter
interface of the Streams API 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.
Properties
Functions
The abort()
method of the WritableStreamDefaultWriter interface aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
The abort()
method of the WritableStreamDefaultWriter interface aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
The close()
method of the WritableStreamDefaultWriter interface closes the associated writable stream.
The releaseLock()
method of the WritableStreamDefaultWriter interface releases the writer's lock on the corresponding stream.
The write()
method of the WritableStreamDefaultWriter interface writes a passed chunk of data to a WritableStream and its underlying sink, then returns a Promise that resolves to indicate the success or failure of the write operation.
The write()
method of the WritableStreamDefaultWriter interface writes a passed chunk of data to a WritableStream and its underlying sink, then returns a Promise that resolves to indicate the success or failure of the write operation.