ReadonlyclosedThe closed read-only property of the the stream errors or the writer's lock is released.
ReadonlydesiredThe desiredSize read-only property of the to fill the stream's internal queue.
ReadonlyreadyThe ready read-only property of the that resolves when the desired size of the stream's internal queue transitions from non-positive to positive, signaling that it is no longer applying backpressure.
The abort() method of the 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.
Optionalreason: anyThe close() method of the stream.
The releaseLock() method of the corresponding stream.
The
WritableStreamDefaultWriterinterface of the Streams API is the object returned by WritableStream.getWriter() and once created locks the writer to theWritableStreamensuring that no other streams can write to the underlying sink.MDN Reference