Skip to content

Commit

Permalink
Update implementation of HostResolveInAgent
Browse files Browse the repository at this point in the history
  • Loading branch information
syg committed Sep 17, 2020
1 parent d3e7273 commit 6587654
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -90994,16 +90994,16 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
data-x="concept-script-record">record</span>.</p></li>
</ol>

<h5><dfn data-x="the-hostresolveinagent-implementation">HostResolveInAgent</dfn>(<var>agentSignifier</var>, <var>promiseCapability</var>, <var>resolution</var>)</h5>
<h5><dfn data-x="the-hostresolveinagent-implementation">HostResolveInAgent</dfn>(<var>agentSignifier</var>, <var>promise</var>, <var>resolution</var>)</h5>

<p>The <cite>Atomics.waitAsync</cite> specification relies on the host to trigger the resolution of a <code data-x="">Promise</code> in another <span>agent</span>. This specification defines that algorithm as follows: <ref spec=JSWAITASYNC></p>

<ol>
<li><p>Let <var>agent</var> be the <span>agent</span> corresponding to <var>agentSignifier</var>.</p></li>
<li>
<p><span>Queue a task</span> on the <dfn>Atomics.waitAsync task source</dfn> in <var>agent</var>'s <span>event loop</span> to run the following steps:</p>
<p><span>Queue a task</span> on the <dfn>Atomics.waitAsync task source</dfn> in <var>agent</var>'s <span>event loop</span> to perform the following steps:</p>
<ol>
<li>Perform ! <span>Call</span>(<var>promiseCapability</var>.[[Resolve]], undefined, &laquo; <var>resolution</var> &raquo;).</li>
<li>Resolve <var>promise</var> with <var>resolution</var>.</li>
</ol>
</li>
</ol>
Expand Down

0 comments on commit 6587654

Please sign in to comment.