Hidehiko Abe | b268b43 | 2018-04-24 01:37:19 +0900 | [diff] [blame] | 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/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 | |
| 10 | while (1); |
| 11 | |
| 12 | /* @deprecated Please use watch()/cancelWatch() instead of |
| 13 | * asyncWait()/cancelWait(). |
| 14 | * |
| 15 | * Waits on the given handle until the state indicated by |signals| is |
| 16 | * satisfied. |
| 17 | * |
| 18 | * @param {MojoHandle} handle The handle to wait on. |
| 19 | * @param {MojoHandleSignals} signals Specifies the condition to wait for. |
| 20 | * @param {function (mojoResult)} callback Called with the result the wait is |
| 21 | * complete. See MojoWait for possible result codes. |
| 22 | * |
| 23 | * @return {MojoWaitId} A waitId that can be passed to cancelWait to cancel the |
| 24 | * wait. |
| 25 | */ |
| 26 | function asyncWait(handle, signals, callback) { [native code] } |
| 27 | |
| 28 | /* @deprecated Please use watch()/cancelWatch() instead of |
| 29 | * asyncWait()/cancelWait(). |
| 30 | * |
| 31 | * Cancels the asyncWait operation specified by the given |waitId|. |
| 32 | * |
| 33 | * @param {MojoWaitId} waitId The waitId returned by asyncWait. |
| 34 | */ |
| 35 | function cancelWait(waitId) { [native code] } |
| 36 | |
| 37 | /* Begins watching a handle for |signals| to be satisfied or unsatisfiable. |
| 38 | * |
| 39 | * @param {MojoHandle} handle The handle to watch. |
| 40 | * @param {MojoHandleSignals} signals The signals to watch. |
| 41 | * @param {function (mojoResult)} calback Called with a result any time |
| 42 | * the watched signals become satisfied or unsatisfiable. |
| 43 | * |
| 44 | * @param {MojoWatchId} watchId An opaque identifier that identifies this |
| 45 | * watch. |
| 46 | */ |
| 47 | function watch(handle, signals, callback) { [native code] } |
| 48 | |
| 49 | /* Cancels a handle watch initiated by watch(). |
| 50 | * |
| 51 | * @param {MojoWatchId} watchId The watch identifier returned by watch(). |
| 52 | */ |
| 53 | function cancelWatch(watchId) { [native code] } |