Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
7 results across 6 corpora for TaskController.
Papers 1
TaskController
OpenAlex work · 2018 · ZZ
Developer library 6
Firefox 142 release notes for developers
I) is now supported, providing a standardized mechanism to assign and manage task priorities for an application. The supported interfaces include: Scheduler, TaskController, TaskSignal, TaskPriorityChangeEvent (and the prioritychange event), and the properties Window.scheduler and WorkerGlobalScope.scheduler. The Scheduling interface and the Navigator.scheduling property are not supported. ([Firefox bug 1966997
Prioritized Task Scheduling API
ority` is **not set**. In this case the task will take its initial priority from the `signal` priority, and the priority can subsequently be changed by calling TaskController.setPriority() on the controller associated with the signal. If the priority is not set with `options.priority` or by passing a TaskSignal to `options.signal` then it defaults to `user-visible` (and is by definition immutable). Note that a task
TaskSignal
o communicate with a prioritized task, and abort it or change the [priority](/docs/Web/API/Prioritized_Task_Scheduling_API#task_priorities) (if required) via a TaskController object. An object of this type is created, and associated with, a TaskController. The initial priority of the signal may be set by specifying it as an argument to the TaskController() constructor (by default it is `"user-visible"`). The priorit
TaskSignal: any() static method
nge` listeners or stop it from following priority changes. ## Examples ### Using `TaskSignal.any()` This example demonstrates combining both a signal from a TaskController, and a timeout signal from TaskSignal.timeout(). ```js const cancelDownloadButton = document.getElementById("cancelDownloadButton"); const userCancelController = new TaskController({ priority: "user-visible", }); cancelDownloadButton.addEve
TaskSignal: prioritychange event
urrent priority. The task is then posted, passing in the signal, and then we immediately change the priority. ```js if ("scheduler" in this) { // Declare a TaskController, setting its signal priority to 'user-blocking' const controller = new TaskController({ priority: "user-blocking" }); // Listen for 'prioritychange' events on the controller's signal. controller.signal.addEventListener("prioritychange", (
TaskSignal: priority property
askSignal interface indicates the signal [priority](/docs/Web/API/Prioritized_Task_Scheduling_API#task_priorities). The initial value is set in the associated TaskController by specifying it as an argument to the [`TaskController` constructor](/docs/Web/API/TaskController/TaskController) (by default it is `"user-visible"`). The priority of the signal can be changed by calling TaskController.setPriority() on the asso