Skip to content

Commit 921f817

Browse files
authored
Trivial readability changes to scheduling-tasks doc (#90)
1 parent d1bf8ab commit 921f817

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spec/scheduling-tasks.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ used for tasks that are blocking the user's ability to interact with the page, s
1717
core experience or responding to user input.
1818

1919
<dfn enum-value for=TaskPriority>user-visible</dfn> is the second highest priority, and is meant to
20-
be used for tasks that visible to the user but not necessarily blocking user actions, such as
21-
rendering secondary parts of the page. This is the default priority.
20+
be used for tasks that are observable to the user but not necessarily blocking user actions, such as
21+
updating secondary parts of the page. This is the default priority.
2222

2323
<dfn enum-value for=TaskPriority>background</dfn> is the lowest priority, and is meant to be used
2424
for tasks that are not time-critical, such as background log processing or initializing certain
@@ -110,7 +110,7 @@ Note: We implement *dynamic prioritization* by enqueuing tasks associated with a
110110
response to `prioritychange` events. The [=Scheduler/dynamic priority task queue map=] holds the
111111
[=scheduler task queues=] whose priorities can change, and the map key is the {{TaskSignal}} which
112112
all tasks in the queue are associated with.
113-
<br/></br>
113+
<br/><br/>
114114
The values of the [=Scheduler/static priority task queue map=] are [=scheduler task queues=] whose
115115
priorities do not change. Tasks with *static priorities* &mdash; those that were scheduled with an
116116
explicit {{SchedulerPostTaskOptions/priority}} option or a {{SchedulerPostTaskOptions/signal}}
@@ -148,7 +148,7 @@ A <dfn>scheduler task</dfn> is a [=/task=] with an additional numeric
148148
The following [=task sources=] are defined as <dfn>scheduler task sources</dfn>,
149149
and must only be used for [=scheduler tasks=].
150150

151-
: <dfn>The posted task task source</dfn>
151+
: The <dfn>posted task task source</dfn>
152152
:: This [=task source=] is used for tasks scheduled through {{Scheduler/postTask()}}.
153153

154154
<br/>
@@ -274,7 +274,7 @@ Issue: [=Run steps after a timeout=] doesn't necessarily account for suspension;
274274
1. Let |enqueue order| be |scheduler|'s [=Scheduler/next enqueue order=].
275275
1. Increment |scheduler|'s [=Scheduler/next enqueue order=] by 1.
276276
1. Let |task| be the result of [=queuing a scheduler task=] on |queue| given |enqueue order|,
277-
[=the posted task task source=], and |document|, and that performs the following steps:
277+
the [=posted task task source=], and |document|, and that performs the following steps:
278278
1. Let |callback result| be the result of [=invoking=] |callback|. If that threw an exception,
279279
then [=reject=] |result| with that, otherwise resolve |result| with |callback result|.
280280
1. If |signal| is not null, then [=AbortSignal/add|add the following=] abort steps to it:

0 commit comments

Comments
 (0)