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.
5 // Module "mojo/public/js/bindings/support"
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.
13 * Waits on the given handle until the state indicated by |waitFlags| is
16 * @param {MojoHandle} handle The handle to wait on.
17 * @param {MojoWaitFlags} waitFlags Flags.
18 * @param {function (mojoResult)} callback Called with the result the wait is
19 * complete. See MojoWait for possible result codes.
21 * @return {MojoWaitId} A waitId that can be passed to cancelWait to cancel the
24 function asyncWait(handle, waitFlags, callback) { [native code] }
27 * Cancels the asyncWait operation specified by the given |waitId|.
28 * @param {MojoWaitId} waitId The waitId returned by asyncWait.
30 function cancelWait(waitId) { [native code] }