chromium/third_party/blink/renderer/core/scheduler/task_signal.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-signal
[
    Exposed=(Window,Worker),
    ImplementedAs=DOMTaskSignal
] interface TaskSignal : AbortSignal {
  [
      CallWith=ScriptState,
      NewObject
  ] static TaskSignal _any(sequence<AbortSignal> signals, optional TaskSignalAnyInit init = {});

  [MeasureAs=TaskSignalPriority] readonly attribute TaskPriority priority;
    attribute EventHandler onprioritychange;
};