Skip to content

Commit

Permalink
doc: fix webstream close reject state state doc
Browse files Browse the repository at this point in the history
The `closed` promise may reject. Document the states where it rejects
based on the spec.

Fixes: nodejs#41858
  • Loading branch information
benjamingr committed Feb 5, 2022
1 parent 217acb9 commit b20b675
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/api/webstreams.md
Original file line number Diff line number Diff line change
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

0 comments on commit b20b675

Please sign in to comment.