summaryrefslogtreecommitdiffstats
path: root/mojo/public/js/bindings/support.js
blob: 756e7ba70c12e165d4b6cb477cdf322d14b158d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2014 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.

// Module "mojo/public/js/bindings/support"
//
// Note: This file is for documentation purposes only. The code here is not
// actually executed. The real module is implemented natively in Mojo.

while (1);

/*
 * Waits on the given handle until the state indicated by |waitFlags| is
 * satisfied.
 *
 * @param {MojoHandle} handle The handle to wait on.
 * @param {MojoWaitFlags} waitFlags Flags.
 * @param {function (mojoResult)} callback Called with the result the wait is
 * complete. See MojoWait for possible result codes.
 *
 * @return {MojoWaitId} A waitId that can be passed to cancelWait to cancel the
 * wait.
 */
function asyncWait(handle, waitFlags, callback) { [native code] }

/*
 * Cancels the asyncWait operation specified by the given |waitId|.
 * @param {MojoWaitId} waitId The waitId returned by asyncWait.
 */
function cancelWait(waitId) { [native code] }