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

Use AbortSignal's abort reason to abort SendStream #377

Merged
merged 2 commits into from
Dec 3, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@ To <dfn export for="SendStream" lt="create|creating">create</dfn> a
[=WritableStream/set up/abortAlgorithm=] set to |abortAlgorithm|.
1. [=AbortSignal/Add=] the following steps to |stream|'s \[[controller]]'s \[[signal]].
1. If |stream|'s [=[[PendingOperation]]=] is null, then abort these steps.
1. Let |reason| be |stream|'s \[[controller]]'s \[[abortReason]].
1. Let |reason| be |stream|'s \[[controller]]'s \[[signal]]'s \[[reason]].
1. Let |abortPromise| be the result of [=aborting=] stream with |reason|.
1. [=Upon fulfillment=] of |abortPromise|, [=reject=] |promise| with |reason|.
1. Let |pendingOperation| be |stream|'s [=[[PendingOperation]]=].
Expand Down