Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add {{AvailableInWorkers}} for Prioritized Task Scheduling API #35994

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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