Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: fix webstream close reject state state doc #41860

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 7 additions & 5 deletions doc/api/webstreams.md
Expand Up @@ -425,7 +425,8 @@ added: v16.5.0
-->

* Type: {Promise} Fulfilled with `undefined` when the associated
{ReadableStream} is closed or this reader's lock is released.
{ReadableStream} is closed or rejected if the stream errors or the reader's
lock is released before the stream finishes closing.

#### `readableStreamDefaultReader.read()`

Expand Down Expand Up @@ -552,7 +553,8 @@ added: v16.5.0
-->

* Type: {Promise} Fulfilled with `undefined` when the associated
{ReadableStream} is closed or this reader's lock is released.
{ReadableStream} is closed or rejected if the stream errors or the reader's
lock is released before the stream finishes closing.

#### `readableStreamBYOBReader.read(view)`

Expand Down Expand Up @@ -902,9 +904,9 @@ Closes the `WritableStream` when no additional writes are expected.
added: v16.5.0
-->

* Type: A promise that is fulfilled with `undefined` when the
associated {WritableStream} is closed or this writer's lock is
released.
* Type: {Promise} Fulfilled with `undefined` when the associated
{WritableStream} is closed or rejected if the stream errors or the writer's
lock is released before the stream finishes closing.

#### `writableStreamDefaultWriter.desiredSize`

Expand Down