1// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Module "mojo/public/js/bindings/support"
6//
7// Note: This file is for documentation purposes only. The code here is not
8// actually executed. The real module is implemented natively in Mojo.
9
10while (1);
11
12/*
13 * Waits on the given handle until the state indicated by |signals| is
14 * satisfied.
15 *
16 * @param {MojoHandle} handle The handle to wait on.
17 * @param {MojoHandleSignals} signals Specifies the condition to wait for.
18 * @param {function (mojoResult)} callback Called with the result the wait is
19 * complete. See MojoWait for possible result codes.
20 *
21 * @return {MojoWaitId} A waitId that can be passed to cancelWait to cancel the
22 * wait.
23 */
24function asyncWait(handle, signals, callback) { [native code] }
25
26/*
27 * Cancels the asyncWait operation specified by the given |waitId|.
28 * @param {MojoWaitId} waitId The waitId returned by asyncWait.
29 */
30function cancelWait(waitId) { [native code] }
31