Skip to content

Commit

Permalink
Streams: fix closed getters (#12750)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasBuelens committed Feb 6, 2022
1 parent 56bc2d2 commit bac781d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions files/en-us/web/api/readablestreambyobreader/closed/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ browser-compat: api.ReadableStreamBYOBReader.closed

The **`closed`** read-only property
of the {{domxref("ReadableStreamBYOBReader")}} interface returns a
{{jsxref("Promise")}} that fulfills when the stream closes or the reader's lock
is released, or rejects if the stream throws an error. This property enables you
{{jsxref("Promise")}} that fulfills when the stream closes, or rejects if the
stream throws an error or the reader's lock is released. This property enables you
to write code that responds to an end to the streaming process.

## Syntax
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/readablestreambyobreader/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The `ReadableStreamBYOBReader` interface of the [Streams API](/en-US/docs/Web/AP
## Properties

- {{domxref("ReadableStreamBYOBReader.closed")}} {{readonlyInline}}
- : Returns a {{jsxref("Promise")}} that fulfills when the stream closes or the reader's lock is released, or rejects if the stream throws an error. This property enables you to write code that responds to an end to the streaming process.
- : Returns a {{jsxref("Promise")}} that fulfills when the stream closes, or rejects if the stream throws an error or the reader's lock is released. This property enables you to write code that responds to an end to the streaming process.

## Methods

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ browser-compat: api.ReadableStreamDefaultReader.closed

The **`closed`** read-only property of the
{{domxref("ReadableStreamDefaultReader")}} interface returns a
{{jsxref("Promise")}} that fulfills when the stream closes or the reader's lock
is released, or rejects if the stream throws an error. This property enables you
{{jsxref("Promise")}} that fulfills when the stream closes, or rejects if the
stream throws an error or the reader's lock is released. This property enables you
to write code that responds to an end to the streaming process.

## Syntax
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/readablestreamdefaultreader/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The **`ReadableStreamDefaultReader`** interface of the [Streams API](/en-US/docs
## Properties

- {{domxref("ReadableStreamDefaultReader.closed")}} {{readonlyInline}}
- : Returns a {{jsxref("Promise")}} that fulfills when the stream closes or the reader's lock is released, or rejects if the stream throws an error. This property enables you to write code that responds to an end to the streaming process.
- : Returns a {{jsxref("Promise")}} that fulfills when the stream closes, or rejects if the stream throws an error or the reader's lock is released. This property enables you to write code that responds to an end to the streaming process.

## Methods

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ browser-compat: api.WritableStreamDefaultWriter.closed
{{SeeCompatTable}}{{APIRef("Streams")}}

The **`closed`** read-only property of the
{{domxref("WritableStreamDefaultWriter")}} interface returns a promise that fulfills if
the stream becomes closed or the writer's lock is released, or rejects if the stream
errors.
{{domxref("WritableStreamDefaultWriter")}} interface returns a
{{jsxref("Promise")}} that fulfills if the stream becomes closed, or rejects if
the stream errors or the writer's lock is released.

## Syntax

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/writablestreamdefaultwriter/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The **`WritableStreamDefaultWriter`** interface of the [Streams API](/en-US/docs
## Properties

- {{domxref("WritableStreamDefaultWriter.closed")}}{{readonlyinline}}
- : Allows you to write code that responds to an end to the streaming process. Returns a promise that fulfills if the stream becomes closed or the writer's lock is released, or rejects if the stream errors.
- : Allows you to write code that responds to an end to the streaming process. Returns a promise that fulfills if the stream becomes closed, or rejects if the stream errors or the writer's lock is released.
- {{domxref("WritableStreamDefaultWriter.desiredSize")}}{{readonlyinline}}
- : Returns the desired size required to fill the stream's internal queue.
- {{domxref("WritableStreamDefaultWriter.ready")}}{{readonlyinline}}
Expand Down

0 comments on commit bac781d

Please sign in to comment.