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