File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2719,7 +2719,9 @@ has the following <a for=struct>items</a>:
2719
2719
<p> "<code> deferred</code> ", "<code> scheduled</code> ", "<code> terminated</code> ",
2720
2720
"<code> aborted</code> ", or "<code> sent</code> "
2721
2721
2722
- <p class=note> This value can be modified <a>in parallel</a> .
2722
+ <p class=note> This value can be modified <a>in parallel</a> . To set it safely, use atomic
2723
+ operations, e.g. atomically exchange the value (set it to the new value and return the new value
2724
+ in one operation).
2723
2725
</dl>
2724
2726
2725
2727
@@ -8645,12 +8647,10 @@ method steps are:
8645
8647
8646
8648
<ol>
8647
8649
<li><p> Let <var> requestObject</var> be the result of invoking the initial value of {{Request}} as
8648
- constructor with <var> input</var> and <var> init</var> as arguments. If that threw an exception,
8649
- <a for=/>reject</a> <var> promise</var> with that exception and return <var> promise</var> .
8650
+ constructor with <var> input</var> and <var> init</var> as arguments. This may throw an exception.
8650
8651
8651
8652
<li><p> If <var> requestObject</var> 's <a for=Request>signal</a> is <a for=AbortSignal>aborted</a> ,
8652
- then <a for=/>reject</a> <var> promise</var> with <var> requestObject</var> 's
8653
- <a for=Request>signal</a> 's <a for=AbortSignal>abort reason</a> and return <var> promise</var> .
8653
+ then throw <a for=Request>signal</a> 's <a for=AbortSignal>abort reason</a> .
8654
8654
8655
8655
<li><p> Let <var> request</var> be <var> requestObject</var> 's <a for=Request>request</a> .
8656
8656
You can’t perform that action at this time.
0 commit comments