summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/scheduler/scheduler.idl
blob: 9a4311cf32c0998c8e3e5622509d8dc702fcb3a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Experimental Scheduling API Proposal:
// https://docs.google.com/document/d/1xU7HyNsEsbXhTgt0ZnXDbeSXm5-m5FzkLJAT6LTizEI/edit#
[RuntimeEnabled=WebScheduler] interface Scheduler {
    readonly attribute TaskQueue currentTaskQueue;
    TaskQueue getTaskQueue(TaskQueuePriority priority);
    Task postTask(Function callback, optional SchedulerPostTaskOptions options, any... arguments);
};