Skip to content

Commit

Permalink
deploy: 00a8773
Browse files Browse the repository at this point in the history
  • Loading branch information
shaseley committed Aug 22, 2024
1 parent ab60bd5 commit 58f3750
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link href="https://www.w3.org/StyleSheets/TR/2021/cg-draft" rel="stylesheet">
<meta content="Bikeshed version 6270e4735, updated Tue Aug 6 12:12:30 2024 -0700" name="generator">
<link href="https://wicg.github.io/scheduling-apis/" rel="canonical">
<meta content="714aeb350577029d26872c1847acf312c8a55545" name="revision">
<meta content="00a877362140798c78432516182c0fbd15b6dc02" name="revision">
<meta content="dark light" name="color-scheme">
<link href="https://www.w3.org/StyleSheets/TR/2021/dark.css" media="(prefers-color-scheme: dark)" rel="stylesheet" type="text/css">
<style>
Expand Down Expand Up @@ -1027,7 +1027,7 @@
<div class="head">
<p data-fill-with="logo"><a class="logo" href="https://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2021/logos/W3C" width="72"> </a> </p>
<h1 class="p-name no-ref" id="title">Prioritized Task Scheduling</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#CG-DRAFT">Draft Community Group Report</a>, <time class="dt-updated" datetime="2024-08-12">12 August 2024</time></p>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#CG-DRAFT">Draft Community Group Report</a>, <time class="dt-updated" datetime="2024-08-22">22 August 2024</time></p>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down Expand Up @@ -1261,7 +1261,7 @@ <h3 class="heading settled" data-level="2.2" id="sec-scheduler"><span class="sec
aborted. </p>
<p>If <var>option</var>’s <code class="idl"><a data-link-type="idl" href="#dom-schedulerposttaskoptions-delay" id="ref-for-dom-schedulerposttaskoptions-delay">delay</a></code> is specified and greater than 0, then the
execution of the task will be delayed for at least <code class="idl"><a data-link-type="idl" href="#dom-schedulerposttaskoptions-delay" id="ref-for-dom-schedulerposttaskoptions-delay①">delay</a></code> milliseconds. </p>
<dt><code>result = scheduler . <code class="idl"><a data-link-type="idl" href="#dom-scheduler-yield" id="ref-for-dom-scheduler-yield②">yield</a></code>( <var>options</var> )</code>
<dt><code>result = scheduler . <code class="idl"><a data-link-type="idl" href="#dom-scheduler-yield" id="ref-for-dom-scheduler-yield②">yield</a></code>()</code>
<dd>
<p>Returns a promise that is fulfilled with <code>undefined</code> or rejected with the <code class="idl"><a data-link-type="idl" href="https://dom.spec.whatwg.org/#abortsignal" id="ref-for-abortsignal⑥">AbortSignal</a></code>'s <a data-link-type="dfn" href="https://dom.spec.whatwg.org/#abortsignal-abort-reason" id="ref-for-abortsignal-abort-reason①">abort reason</a>, if the continuation is aborted. </p>
<p>The priority of the continuation and the signal used to abort it are inherited from
Expand All @@ -1285,8 +1285,8 @@ <h3 class="heading settled" data-level="2.2" id="sec-scheduler"><span class="sec
response to a <code class="idl"><a data-link-type="idl" href="#tasksignal" id="ref-for-tasksignal⑨">TaskSignal</a></code>'s <a data-link-type="dfn" href="#tasksignal-priority" id="ref-for-tasksignal-priority①">priority</a> changing, inserting based on <a data-link-type="dfn" href="#scheduler-task-enqueue-order" id="ref-for-scheduler-task-enqueue-order">enqueue order</a>. This approach would simplify <a data-link-type="dfn" href="#select-the-next-scheduler-task-queue-from-all-schedulers" id="ref-for-select-the-next-scheduler-task-queue-from-all-schedulers">selecting the next scheduler task queue from
all schedulers</a>, but make priority changes more complex.</p>
<p>The <dfn class="dfn-paneled idl-code" data-dfn-for="Scheduler" data-dfn-type="method" data-export data-lt="postTask(callback, options)|postTask(callback)" id="dom-scheduler-posttask" title="postTask(callback, options)"><code>postTask(<var>callback</var>, <var>options</var>)</code></dfn> method steps are to return the result of <a data-link-type="dfn" href="#schedule-a-posttask-task" id="ref-for-schedule-a-posttask-task">scheduling a postTask task</a> for <a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-this">this</a> given <var>callback</var> and <var>options</var>.</p>
<p>The <dfn class="dfn-paneled idl-code" data-dfn-for="Scheduler" data-dfn-type="method" data-export data-lt="yield()|yield(options)" id="dom-scheduler-yield" title="yield(options)"><code>yield(<var>options</var>)</code></dfn> method steps are to
return the result of <a data-link-type="dfn" href="#schedule-a-yield-continuation" id="ref-for-schedule-a-yield-continuation">scheduling a yield continuation</a> for <a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-this①">this</a> given <var>options</var>.</p>
<p>The <dfn class="dfn-paneled idl-code" data-dfn-for="Scheduler" data-dfn-type="method" data-export id="dom-scheduler-yield" title="yield()"><code>yield()</code></dfn> method steps are to
return the result of <a data-link-type="dfn" href="#schedule-a-yield-continuation" id="ref-for-schedule-a-yield-continuation">scheduling a yield continuation</a> for <a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-this①">this</a>.</p>
<h3 class="heading settled" data-level="2.3" id="sec-scheduling-tasks-definitions"><span class="secno">2.3. </span><span class="content">Definitions</span><a class="self-link" href="#sec-scheduling-tasks-definitions"></a></h3>
<p>A <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="scheduler-task">scheduler task</dfn> is a <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#concept-task" id="ref-for-concept-task②">task</a> with an additional numeric <dfn class="dfn-paneled" data-dfn-for="scheduler task" data-dfn-type="dfn" data-noexport id="scheduler-task-enqueue-order">enqueue order</dfn> <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#struct-item" id="ref-for-struct-item">item</a>, initially set to 0.</p>
<p>The following <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#task-source" id="ref-for-task-source">task sources</a> are defined as <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="scheduler-task-sources">scheduler task sources</dfn>,
Expand Down Expand Up @@ -2185,7 +2185,6 @@ <h3 class="no-num no-ref heading settled" id="index-defined-here"><span class="c
<li><a href="#dom-taskpriority-user-visible">"user-visible"</a><span>, in § 2.1</span>
<li><a href="#dom-taskpriority-user-visible">user-visible</a><span>, in § 2.1</span>
<li><a href="#dom-scheduler-yield">yield()</a><span>, in § 2.2</span>
<li><a href="#dom-scheduler-yield">yield(options)</a><span>, in § 2.2</span>
</ul>
<h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span class="content">Terms defined by reference</span><a class="self-link" href="#index-defined-elsewhere"></a></h3>
<ul class="index">
Expand Down Expand Up @@ -2865,7 +2864,7 @@ <h2 class="no-num no-ref heading settled" id="issues-index"><span class="content
"dom-scheduler-posttask": {"dfnID":"dom-scheduler-posttask","dfnText":"postTask(callback, options)","external":false,"refSections":[{"refs":[{"id":"ref-for-dom-scheduler-posttask"}],"title":"1. Introduction"},{"refs":[{"id":"ref-for-dom-scheduler-posttask\u2460"},{"id":"ref-for-dom-scheduler-posttask\u2461"},{"id":"ref-for-dom-scheduler-posttask\u2462"},{"id":"ref-for-dom-scheduler-posttask\u2463"}],"title":"2.2. The Scheduler Interface"},{"refs":[{"id":"ref-for-dom-scheduler-posttask\u2464"}],"title":"2.3. Definitions"},{"refs":[{"id":"ref-for-dom-scheduler-posttask\u2465"}],"title":"3. Controlling Tasks"},{"refs":[{"id":"ref-for-dom-scheduler-posttask\u2466"}],"title":"3.3. The TaskSignal Interface"},{"refs":[{"id":"ref-for-dom-scheduler-posttask\u2467"}],"title":"5.1. postTask as a High-Resolution Timing Source"},{"refs":[{"id":"ref-for-dom-scheduler-posttask\u2468"},{"id":"ref-for-dom-scheduler-posttask\u2460\u24ea"},{"id":"ref-for-dom-scheduler-posttask\u2460\u2460"}],"title":"5.2. Monitoring Another Origin\u2019s Tasks"}],"url":"#dom-scheduler-posttask"},
"dom-scheduler-posttask-callback-options-callback": {"dfnID":"dom-scheduler-posttask-callback-options-callback","dfnText":"callback","external":false,"refSections":[],"url":"#dom-scheduler-posttask-callback-options-callback"},
"dom-scheduler-posttask-callback-options-options": {"dfnID":"dom-scheduler-posttask-callback-options-options","dfnText":"options","external":false,"refSections":[],"url":"#dom-scheduler-posttask-callback-options-options"},
"dom-scheduler-yield": {"dfnID":"dom-scheduler-yield","dfnText":"yield(options)","external":false,"refSections":[{"refs":[{"id":"ref-for-dom-scheduler-yield"}],"title":"1. Introduction"},{"refs":[{"id":"ref-for-dom-scheduler-yield\u2460"},{"id":"ref-for-dom-scheduler-yield\u2461"}],"title":"2.2. The Scheduler Interface"},{"refs":[{"id":"ref-for-dom-scheduler-yield\u2462"}],"title":"2.3. Definitions"},{"refs":[{"id":"ref-for-dom-scheduler-yield\u2463"},{"id":"ref-for-dom-scheduler-yield\u2464"},{"id":"ref-for-dom-scheduler-yield\u2465"}],"title":"5.2. Monitoring Another Origin\u2019s Tasks"}],"url":"#dom-scheduler-yield"},
"dom-scheduler-yield": {"dfnID":"dom-scheduler-yield","dfnText":"yield()","external":false,"refSections":[{"refs":[{"id":"ref-for-dom-scheduler-yield"}],"title":"1. Introduction"},{"refs":[{"id":"ref-for-dom-scheduler-yield\u2460"},{"id":"ref-for-dom-scheduler-yield\u2461"}],"title":"2.2. The Scheduler Interface"},{"refs":[{"id":"ref-for-dom-scheduler-yield\u2462"}],"title":"2.3. Definitions"},{"refs":[{"id":"ref-for-dom-scheduler-yield\u2463"},{"id":"ref-for-dom-scheduler-yield\u2464"},{"id":"ref-for-dom-scheduler-yield\u2465"}],"title":"5.2. Monitoring Another Origin\u2019s Tasks"}],"url":"#dom-scheduler-yield"},
"dom-schedulerposttaskoptions-delay": {"dfnID":"dom-schedulerposttaskoptions-delay","dfnText":"delay","external":false,"refSections":[{"refs":[{"id":"ref-for-dom-schedulerposttaskoptions-delay"},{"id":"ref-for-dom-schedulerposttaskoptions-delay\u2460"}],"title":"2.2. The Scheduler Interface"},{"refs":[{"id":"ref-for-dom-schedulerposttaskoptions-delay\u2461"}],"title":"2.4.2. Scheduling Tasks and Continuations"},{"refs":[{"id":"ref-for-dom-schedulerposttaskoptions-delay\u2462"}],"title":"5.1. postTask as a High-Resolution Timing Source"}],"url":"#dom-schedulerposttaskoptions-delay"},
"dom-schedulerposttaskoptions-priority": {"dfnID":"dom-schedulerposttaskoptions-priority","dfnText":"priority","external":false,"refSections":[{"refs":[{"id":"ref-for-dom-schedulerposttaskoptions-priority"},{"id":"ref-for-dom-schedulerposttaskoptions-priority\u2460"},{"id":"ref-for-dom-schedulerposttaskoptions-priority\u2461"}],"title":"2.2. The Scheduler Interface"},{"refs":[{"id":"ref-for-dom-schedulerposttaskoptions-priority\u2462"},{"id":"ref-for-dom-schedulerposttaskoptions-priority\u2463"}],"title":"2.4.2. Scheduling Tasks and Continuations"}],"url":"#dom-schedulerposttaskoptions-priority"},
"dom-schedulerposttaskoptions-signal": {"dfnID":"dom-schedulerposttaskoptions-signal","dfnText":"signal","external":false,"refSections":[{"refs":[{"id":"ref-for-dom-schedulerposttaskoptions-signal"},{"id":"ref-for-dom-schedulerposttaskoptions-signal\u2460"},{"id":"ref-for-dom-schedulerposttaskoptions-signal\u2461"},{"id":"ref-for-dom-schedulerposttaskoptions-signal\u2462"},{"id":"ref-for-dom-schedulerposttaskoptions-signal\u2463"},{"id":"ref-for-dom-schedulerposttaskoptions-signal\u2464"},{"id":"ref-for-dom-schedulerposttaskoptions-signal\u2465"}],"title":"2.2. The Scheduler Interface"},{"refs":[{"id":"ref-for-dom-schedulerposttaskoptions-signal\u2466"}],"title":"2.4.2. Scheduling Tasks and Continuations"},{"refs":[{"id":"ref-for-dom-schedulerposttaskoptions-signal\u2467"}],"title":"3. Controlling Tasks"}],"url":"#dom-schedulerposttaskoptions-signal"},
Expand Down

0 comments on commit 58f3750

Please sign in to comment.