Skip to content

Commit 4b7d4df

Browse files
committed
[worklets] Clarify that the event loop is not run continuously.
Addresses w3c#56.
1 parent 5a2e381 commit 4b7d4df

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

worklets/Overview.bs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@ Editor: Ian Kilpatrick, ikilpatrick@chromium.org
1212

1313
<pre class="anchors">
1414
urlPrefix: http://heycam.github.io/webidl/#dfn-; type: dfn;
15-
text: DOMException
16-
text: SyntaxError
17-
text: inherit
15+
urlPrefix: #dfn-;
16+
text: DOMException
17+
text: SyntaxError
18+
text: inherit
19+
urlPrefix: #es-;
20+
text: invoking callback functions
1821
urlPrefix: https://fetch.spec.whatwg.org/; type: dfn;
1922
urlPrefix: #concept-;
2023
text: fetch
@@ -34,6 +37,7 @@ urlPrefix: https://html.spec.whatwg.org/multipage/webappapis.html; type: dfn;
3437
text: document environment
3538
text: environment settings object
3639
text: event loop
40+
text: event loop processing model
3741
text: fetch a module script tree
3842
text: global object
3943
text: https state
@@ -156,6 +160,11 @@ associated <a>browsing context</a>, and only its <a>microtask queue</a> is used
156160
queues</a> are not used). The <a>event loop</a> is created by the <a>create a
157161
WorkletGlobalScope</a> algorithm.
158162

163+
Note:
164+
Even through the <a>event loop processing model</a> specifies that it loops continually,
165+
practically implementations aren't expected to do this. The <a>microtask queue</a> is the only
166+
queue used and is emptied while <a>invoking callback functions</a> provided by the author.
167+
159168
### Creating a WorkletGlobalScope ### {#creating-a-workletglobalscope}
160169

161170
When a user agent is to <dfn>create a WorkletGlobalScope</dfn>, for a given |worklet|, it

0 commit comments

Comments
 (0)