7 [Exposed=(Window, Worker), Pref="dom.enable_web_task_scheduling"]
8 interface TaskSignal : AbortSignal {
9 readonly attribute TaskPriority priority;
11 attribute EventHandler onprioritychange;
15 dictionary SchedulerPostTaskOptions {
17 TaskPriority priority;
18 [EnforceRange] unsigned long long delay = 0;
21 callback SchedulerPostTaskCallback = any ();
23 [Exposed=(Window, Worker), Pref="dom.enable_web_task_scheduling"]
26 Promise<any> postTask(
27 SchedulerPostTaskCallback callback,
28 optional SchedulerPostTaskOptions options = {}
32 dictionary TaskControllerInit {
33 TaskPriority priority = "user-visible";
36 [Exposed=(Window,Worker), Pref="dom.enable_web_task_scheduling"]
37 interface TaskController : AbortController {
39 constructor(optional TaskControllerInit init = {});
42 undefined setPriority(TaskPriority priority);