chromium/third_party/blink/renderer/core/scheduler/task_controller.idl

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://wicg.github.io/scheduling-apis/#sec-task-controller
[
    Exposed=(Window,Worker),
    ImplementedAs=DOMTaskController
] interface TaskController : AbortController {
    [CallWith=ExecutionContext, MeasureAs=TaskControllerConstructor] constructor(optional TaskControllerInit init = {});
    [MeasureAs=TaskControllerSetPriority, RaisesException] void setPriority(TaskPriority priority);
};