Skip to content

Commit 7357cbf

Browse files
More easy to abort
1 parent ef029c5 commit 7357cbf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/index.bs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3263,8 +3263,10 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/
32633263
1. Let |queue| be an empty [=queue=] of [=race result=].
32643264
1. Let |raceFetchController| be null.
32653265
1. Let |raceResponse| be a [=race response=] whose [=race response/value=] is "<code>pending</code>".
3266-
1. Run the following substeps [=in parallel=], but [=abort when=] |fetchController|'s [=fetch controller/state=] is "<code>terminated</code>" or "<code>aborted</code>":
3266+
1. Let |fetchControllerAborted| be false.
3267+
1. Run the following substeps [=in parallel=], but [=abort when=] |fetchControllerAborted| is true:
32673268
1. Set |raceFetchController| to the result of calling [=fetch=] given |request|, with [=fetch/processResponse=] set to the following steps given a [=/response=] |raceNetworkRequestResponse|:
3269+
1. If |fetchController|'s [=fetch controller/state=] is "<code>terminated</code>" or "<code>aborted</code>", then |fetchControllerAborted| is true.
32683270
1. If |raceNetworkRequestResponse|'s [=response/status=] is [=ok status=], then:
32693271
1. Set |raceResponse|'s [=race response/value=] to |raceNetworkRequestResponse|.
32703272
1. Let |raceNetworkResult| be a [=race result=] whose [=race result/routed response=] is |raceNetworkRequestResponse| and [=race result/used route=] is {{RouterSourceEnum/"network"}}.

0 commit comments

Comments
 (0)