Skip to content

Commit

Permalink
re-add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato committed Mar 26, 2024
1 parent e2ce170 commit e85e52a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2134,6 +2134,8 @@ The following abstract operations operate on {{ReadableStream}} instances at a h
1. Return the result of [=reacting=] to |nextPromise|:
- If |next| was fulfilled with value |v|:
1. If |v| is [=end of iteration=], perform ! [$ReadableStreamDefaultControllerClose$](|stream|.[=ReadableStream/[[controller]]=]).
<!-- TODO (future): If we allow changing the queuing strategy, this Enqueue might throw.
We'll then need to catch the error and close the async iterator. -->
1. Otherwise, perform ! [$ReadableStreamDefaultControllerEnqueue$](|stream|.[=ReadableStream/[[controller]]=], |v|).
- If |next| was rejected with reason |r|, perform ! [$ReadableStreamDefaultControllerError$](|stream|.[=ReadableStream/[[controller]]=], |r|).
1. Let |cancelAlgorithm| be the following steps, given |reason|:
Expand Down

0 comments on commit e85e52a

Please sign in to comment.