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
@@ -8649,12 +8651,10 @@ method steps are:
8649
8651
8650
8652
<ol>
8651
8653
<li><p> Let <var> requestObject</var> be the result of invoking the initial value of {{Request}} as
8652
- constructor with <var> input</var> and <var> init</var> as arguments. If that threw an exception,
8653
- <a for=/>reject</a> <var> promise</var> with that exception and return <var> promise</var> .
8654
+ constructor with <var> input</var> and <var> init</var> as arguments. This may throw an exception.
8654
8655
8655
8656
<li><p> If <var> requestObject</var> 's <a for=Request>signal</a> is <a for=AbortSignal>aborted</a> ,
8656
- then <a for=/>reject</a> <var> promise</var> with <var> requestObject</var> 's
8657
- <a for=Request>signal</a> 's <a for=AbortSignal>abort reason</a> and return <var> promise</var> .
8657
+ then throw <a for=Request>signal</a> 's <a for=AbortSignal>abort reason</a> .
8658
8658
8659
8659
<li><p> Let <var> request</var> be <var> requestObject</var> 's <a for=Request>request</a> .
8660
8660
You can’t perform that action at this time.
0 commit comments