Skip to content

Commit

Permalink
formatting and links
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Sep 28, 2020
1 parent 4223489 commit ed9c8a6
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -2871,7 +2871,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
spec=JSWAITASYNC></p>

<ul class="brief">
<li>The <dfn data-x="js-HostResolveInAgent" data-x-href="https://tc39.github.io/proposal-atomics-wait-async/#sec-hostresolveinagent">HostResolveInAgent</dfn> abstract operation</li>
<li>The <dfn data-x="js-HostResolveInAgent" data-x-href="https://tc39.es/proposal-atomics-wait-async/#sec-hostresolveinagent">HostResolveInAgent</dfn> abstract operation</li>
</ul>

</dd>
Expand Down Expand Up @@ -90993,16 +90993,25 @@ 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>promiseCapability</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>
<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>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 perform 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><p>Perform ! <span>Call</span>(<var>promiseCapability</var>.[[Resolve]], undefined, «
<var>resolution</var> »).</p></li>
</ol>
</li>
</ol>
Expand Down Expand Up @@ -122784,7 +122793,7 @@ INSERT INTERFACES HERE
<dd><cite><a href="https://tools.ietf.org/html/rfc7159">The JavaScript Object Notation (JSON) Data Interchange Format</a></cite>, T. Bray. IETF.</dd>

<dt id="refsJSWAITASYNC">[JSWAITASYNC]</dt>
<dd><cite><a href="https://tc39.github.io/proposal-atomics-wait-async/">Atomics.waitAsync</a></cite>. Ecma International.</dd>
<dd><cite><a href="https://tc39.es/proposal-atomics-wait-async/">Atomics.waitAsync</a></cite>. Ecma International.</dd>

<dt id="refsLONGTASKS">[LONGTASKS]</dt>
<dd><cite><a href="https://w3c.github.io/longtasks/">Long Tasks</a></cite>, D. Denicola, I. Grigorik, S. Panicker. W3C.</dd>
Expand Down

0 comments on commit ed9c8a6

Please sign in to comment.