source: trunk/FACT++/scripts/doc/v8.js@ 15658

Last change on this file since 15658 was 15074, checked in by tbretz, 12 years ago
Added the new function v8.timeout
File size: 1.9 KB
Line 
1throw new Error("Description for built in functions. Must not be included!");
2/**
3 * @fileOverview
4 * Documentation of dim namespace.
5 */
6
7/**
8 * @namespace
9 *
10 * Namespace for general extension functions
11 *
12 * @author <a href="mailto:thomas.bretz@epfl.ch">Thomas Bretz</a>
13 */
14var v8 = { };
15
16/**
17 * Sleep for a while. This can be used to just wait or give time
18 * back to the operating system to produce less CPU load if the
19 * main purpose of a loop is, e.g., to wait for something to happen.
20 *
21 * @param {Integer} [milliseconds=0]
22 * Number of millliseconds to sleep. Note that even 0 will always
23 * sleep at least one millisecond.
24 *
25 */
26v8.sleep = function() { /* [native code] */ }
27
28/**
29 * This function implements a simple timeout functionality.
30 * back to the operating system to produce less CPU load if the
31 * main purpose of a loop is, e.g., to wait for something to happen.
32 *
33 * @param {Integer} [milliseconds]
34 * Number of millliseconds until the timeout. Note that even 0
35 * will execute the function at least once. If the timeout
36 * is negative no exception will be thrown by undefined will
37 * be returned in case of a timeout.
38 *
39 * @param {Function} [func]
40 * A function. The function defines when the conditional to end
41 * the timeout will be fullfilled. As soon as the function returns
42 * a defined value, i.e. something else than undefined, the
43 * timeout is stopped and its return value is returned.
44 *
45 * @param [. . .]
46 * Any further argument will be passed to the function.
47 *
48 * @returns
49 * Whatever is returned by the function. undefined in case of timeout
50 * and a negative timeout value.
51 *
52 * @throws
53 * <li> When the number or type of argument is wrong
54 * <li> In case the timeout is positive and the timeout condition occurs
55 *
56 */
57v8.timeout = function() { /* [native code] */ }
58
59/**
60 * Version number of the V8 JavaScript engine.
61 *
62 * @constant
63 * @type String
64 */
65v8.version = "";
Note: See TracBrowser for help on using the repository browser.