Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
skyclouds2001 authored Sep 22, 2024
1 parent aef1553 commit ea85ec0
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ browser-compat:
- api.Scheduling
---

{{DefaultAPISidebar("Prioritized Task Scheduling API")}} {{AvailableInWorkers}}
{{DefaultAPISidebar("Prioritized Task Scheduling API")}}{{AvailableInWorkers}}

The **Prioritized Task Scheduling API** provides a standardized way to prioritize all tasks belonging to an application, whether they are defined in a website developer's code or in third-party libraries and frameworks.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/scheduler/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ page-type: web-api-interface
browser-compat: api.Scheduler
---

{{APIRef("Prioritized Task Scheduling API")}}
{{APIRef("Prioritized Task Scheduling API")}}{{AvailableInWorkers}}

The **`Scheduler`** interface of the [Prioritized Task Scheduling API](/en-US/docs/Web/API/Prioritized_Task_Scheduling_API) provides the {{domxref('Scheduler.postTask()')}} method that can be used for adding prioritized tasks to be scheduled.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/scheduler/posttask/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: web-api-instance-method
browser-compat: api.Scheduler.postTask
---

{{APIRef("Prioritized Task Scheduling API")}}
{{APIRef("Prioritized Task Scheduling API")}}{{AvailableInWorkers}}

The **`postTask()`** method of the {{domxref("Scheduler")}} interface is used for adding tasks to be [scheduled](/en-US/docs/Web/API/Prioritized_Task_Scheduling_API) according to their [priority](/en-US/docs/Web/API/Prioritized_Task_Scheduling_API#task_priorities).

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/taskcontroller/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ page-type: web-api-interface
browser-compat: api.TaskController
---

{{APIRef("Prioritized Task Scheduling API")}}
{{APIRef("Prioritized Task Scheduling API")}}{{AvailableInWorkers}}

The **`TaskController`** interface of the [Prioritized Task Scheduling API](/en-US/docs/Web/API/Prioritized_Task_Scheduling_API) represents a controller object that can be used to both abort and change the [priority](/en-US/docs/Web/API/Prioritized_Task_Scheduling_API#task_priorities) of one or more prioritized tasks.
If there is no need to change task priorities, then {{domxref("AbortController")}} can be used instead.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/taskcontroller/setpriority/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: web-api-instance-method
browser-compat: api.TaskController.setPriority
---

{{APIRef("Prioritized Task Scheduling API")}}
{{APIRef("Prioritized Task Scheduling API")}}{{AvailableInWorkers}}

The **`setPriority()`** method of the {{domxref("TaskController")}} interface can be called to set a new [priority](/en-US/docs/Web/API/Prioritized_Task_Scheduling_API#task_priorities) for this controller's [`signal`](/en-US/docs/Web/API/TaskController#taskcontroller.signal).
If a prioritized task is [configured](/en-US/docs/Web/API/Scheduler/postTask#signal) to use the signal, this will also change the task priority.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/taskcontroller/taskcontroller/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: web-api-constructor
browser-compat: api.TaskController.TaskController
---

{{APIRef("Prioritized Task Scheduling API")}}
{{APIRef("Prioritized Task Scheduling API")}}{{AvailableInWorkers}}

The **`TaskController()`** constructor creates a new {{domxref("TaskController")}} object, optionally setting the initial [priority](/en-US/docs/Web/API/Prioritized_Task_Scheduling_API#task_priorities) of its associated [`signal`](/en-US/docs/Web/API/TaskController#taskcontroller.signal).

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/taskprioritychangeevent/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ page-type: web-api-interface
browser-compat: api.TaskPriorityChangeEvent
---

{{APIRef("Prioritized Task Scheduling API")}}
{{APIRef("Prioritized Task Scheduling API")}}{{AvailableInWorkers}}

The **`TaskPriorityChangeEvent`** is the interface for the [`prioritychange`](/en-US/docs/Web/API/TaskSignal/prioritychange_event) event.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.TaskPriorityChangeEvent.previousPriority
---

{{APIRef("Prioritized Task Scheduling API")}}
{{APIRef("Prioritized Task Scheduling API")}}{{AvailableInWorkers}}

The readonly **`previousPriority`** property of the {{domxref("TaskPriorityChangeEvent")}} interface returns the priority of the corresponding {{domxref("TaskSignal")}} before it was changed and this [`prioritychange`](/en-US/docs/Web/API/TaskSignal/prioritychange_event) event was emitted.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: web-api-constructor
browser-compat: api.TaskPriorityChangeEvent.TaskPriorityChangeEvent
---

{{APIRef("Prioritized Task Scheduling API")}}
{{APIRef("Prioritized Task Scheduling API")}}{{AvailableInWorkers}}

The **`TaskPriorityChangeEvent()`** constructor creates a new {{domxref("TaskPriorityChangeEvent")}} object.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/tasksignal/any_static/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ status:
browser-compat: api.TaskSignal.any_static
---

{{APIRef("Prioritized Task Scheduling API")}}{{SeeCompatTable}}
{{APIRef("Prioritized Task Scheduling API")}}{{AvailableInWorkers}}{{SeeCompatTable}}

The **`TaskSignal.any()`** static method takes an iterable of {{domxref("AbortSignal")}} objects and returns a {{domxref("TaskSignal")}}. The returned task signal is aborted when any of the abort signals is aborted.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/tasksignal/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ page-type: web-api-interface
browser-compat: api.TaskSignal
---

{{APIRef("Prioritized Task Scheduling API")}}
{{APIRef("Prioritized Task Scheduling API")}}{{AvailableInWorkers}}

The **`TaskSignal`** interface of the [Prioritized Task Scheduling API](/en-US/docs/Web/API/Prioritized_Task_Scheduling_API) represents a signal object that allows you to communicate with a prioritized task, and abort it or change the [priority](/en-US/docs/Web/API/Prioritized_Task_Scheduling_API#task_priorities) (if required) via a {{domxref('TaskController')}} object.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/tasksignal/priority/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.TaskSignal.priority
---

{{APIRef("Prioritized Task Scheduling API")}}
{{APIRef("Prioritized Task Scheduling API")}}{{AvailableInWorkers}}

The read-only **`priority`** property of the {{domxref("TaskSignal")}} interface indicates the signal [priority](/en-US/docs/Web/API/Prioritized_Task_Scheduling_API#task_priorities).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: web-api-event
browser-compat: api.TaskSignal.prioritychange_event
---

{{APIRef("Prioritized Task Scheduling API")}}
{{APIRef("Prioritized Task Scheduling API")}}{{AvailableInWorkers}}

The **`prioritychange`** event is sent to a {{domxref('TaskSignal')}} if its [priority](/en-US/docs/Web/API/Prioritized_Task_Scheduling_API#task_priorities) is changed.

Expand Down

0 comments on commit ea85ec0

Please sign in to comment.