|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
|
2 <html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#"> |
|
3 <head> |
|
4 <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> |
|
5 <title>API: async-queue (YUI Library)</title> |
|
6 |
|
7 <link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" /> |
|
8 <link rel="stylesheet" type="text/css" href="assets/api.css" /> |
|
9 |
|
10 <script type="text/javascript" src="assets/api-js"></script> |
|
11 <script type="text/javascript" src="assets/ac-js"></script> |
|
12 </head> |
|
13 |
|
14 <body id="yahoo-com"> |
|
15 |
|
16 <div id="doc3" class="yui-t2"> |
|
17 <div id="hd"> |
|
18 <h1><a href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library">Yahoo! UI Library</a></h1> |
|
19 <h3>async-queue <span class="subtitle">3.0.0</span></h3> |
|
20 <a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a> |
|
21 > <a href="./module_async-queue.html" title="async-queue">async-queue</a> |
|
22 |
|
23 |
|
24 <form onsubmit="return false"> |
|
25 <div id="propertysearch"> |
|
26 Search: <input autocomplete="off" id="searchinput" /> |
|
27 <div id="searchresults"> |
|
28 |
|
29 </div> |
|
30 </div> |
|
31 </form> |
|
32 </div> |
|
33 |
|
34 <div id="bd"> |
|
35 <div id="yui-main"> |
|
36 <div class="yui-b"> |
|
37 <form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form"> |
|
38 <fieldset> |
|
39 <legend>Filters</legend> |
|
40 <span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span> |
|
41 <span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span> |
|
42 <span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span> |
|
43 </fieldset> |
|
44 </form> |
|
45 |
|
46 |
|
47 <h3>Module: async-queue |
|
48 |
|
49 |
|
50 |
|
51 </h3> |
|
52 <div class="description summary"> |
|
53 <p>AsyncQueue allows you create a chain of function callbacks executed |
|
54 via setTimeout (or synchronously) that are guaranteed to run in order. |
|
55 Items in the queue can be promoted or removed. Start or resume the |
|
56 execution chain with run(). pause() to temporarily delay execution, or |
|
57 stop() to halt and clear the queue.</p> |
|
58 </div> |
|
59 |
|
60 |
|
61 |
|
62 <div class="yui-gc"> |
|
63 <div class="yui-u first"> |
|
64 |
|
65 <p>This module contains the following classes:</p> |
|
66 <script> |
|
67 //var YUI_CLASS_LIST = [{"extends": {"superclass": {"EventTarget": "EventTarget"}, "events": {}, "configs": {}, "properties": {}, "methods": {"EventTarget": [{"access": "private", "deprecated": false, "name": "_getType"}, {"access": "private", "deprecated": false, "name": "_parseType"}, {"access": "", "deprecated": false, "name": "addTarget"}, {"access": "", "deprecated": false, "name": "after"}, {"access": "", "deprecated": true, "name": "before"}, {"access": "", "deprecated": false, "name": "bubble"}, {"access": "", "deprecated": false, "name": "detach"}, {"access": "", "deprecated": false, "name": "detachAll"}, {"access": "", "deprecated": false, "name": "fire"}, {"access": "", "deprecated": false, "name": "getEvent"}, {"access": "", "deprecated": false, "name": "on"}, {"access": "", "deprecated": false, "name": "publish"}, {"access": "", "deprecated": false, "name": "removeTarget"}, {"access": "", "deprecated": true, "name": "subscribe"}, {"access": "", "deprecated": true, "name": "unsubscribe"}, {"access": "", "deprecated": true, "name": "unsubscribeAll"}]}}, "description": "<p>A specialized queue class that supports scheduling callbacks to execute\nsequentially, iteratively, even asynchronously.</p>\n<p>Callbacks can be function refs or objects with the following keys. Only\nthe <code>fn</code> key is required.</p>\n<ul>\n<li><code>fn</code> -- The callback function</li>\n<li><code>context</code> -- The execution context for the callbackFn.</li>\n<li><code>args</code> -- Arguments to pass to callbackFn.</li>\n<li><code>timeout</code> -- Millisecond delay before executing callbackFn.\n(Applies to each iterative execution of callback)</li>\n<li><code>iterations</code> -- Number of times to repeat the callback.\n<li><code>until</code> -- Repeat the callback until this function returns\ntrue. This setting trumps iterations.</li>\n<li><code>autoContinue</code> -- Set to false to prevent the AsyncQueue from\nexecuting the next callback in the Queue after\nthe callback completes.</li>\n<li><code>id</code> -- Name that can be used to get, promote, get the\nindexOf, or delete this callback.</li>\n</ul>", "guessedname": "AsyncQueue", "name": "AsyncQueue"}]; |
|
68 </script> |
|
69 <div id="splash_classList"> |
|
70 <ul> |
|
71 <li><a href="AsyncQueue.html" title="AsyncQueue" id="class_0">AsyncQueue</a></li> |
|
72 </ul> |
|
73 </div> |
|
74 </div> |
|
75 <div class="yui-u"> |
|
76 |
|
77 </div> |
|
78 </div> |
|
79 |
|
80 </div> |
|
81 </div> |
|
82 <div class="yui-b"> |
|
83 <div class="nav"> |
|
84 |
|
85 <div id="moduleList" class="module"> |
|
86 <h4>Modules</h4> |
|
87 <ul class="content"> |
|
88 <li class=""><a href="module_anim.html" title="anim">anim</a></li> |
|
89 <li class="selected"><a href="module_async-queue.html" title="async-queue">async-queue</a></li> |
|
90 <li class=""><a href="module_attribute.html" title="attribute">attribute</a></li> |
|
91 <li class=""><a href="module_base.html" title="base">base</a></li> |
|
92 <li class=""><a href="module_cache.html" title="cache">cache</a></li> |
|
93 <li class=""><a href="module_classnamemanager.html" title="classnamemanager">classnamemanager</a></li> |
|
94 <li class=""><a href="module_collection.html" title="collection">collection</a></li> |
|
95 <li class=""><a href="module_console.html" title="console">console</a></li> |
|
96 <li class=""><a href="module_console-filters.html" title="console-filters">console-filters</a></li> |
|
97 <li class=""><a href="module_cookie.html" title="cookie">cookie</a></li> |
|
98 <li class=""><a href="module_dataschema.html" title="dataschema">dataschema</a></li> |
|
99 <li class=""><a href="module_datasource.html" title="datasource">datasource</a></li> |
|
100 <li class=""><a href="module_datatype.html" title="datatype">datatype</a></li> |
|
101 <li class=""><a href="module_dd.html" title="dd">dd</a></li> |
|
102 <li class=""><a href="module_dom.html" title="dom">dom</a></li> |
|
103 <li class=""><a href="module_dump.html" title="dump">dump</a></li> |
|
104 <li class=""><a href="module_event.html" title="event">event</a></li> |
|
105 <li class=""><a href="module_event-custom.html" title="event-custom">event-custom</a></li> |
|
106 <li class=""><a href="module_event-simulate.html" title="event-simulate">event-simulate</a></li> |
|
107 <li class=""><a href="module_history.html" title="history">history</a></li> |
|
108 <li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li> |
|
109 <li class=""><a href="module_io.html" title="io">io</a></li> |
|
110 <li class=""><a href="module_json.html" title="json">json</a></li> |
|
111 <li class=""><a href="module_node.html" title="node">node</a></li> |
|
112 <li class=""><a href="module_node-focusmanager.html" title="node-focusmanager">node-focusmanager</a></li> |
|
113 <li class=""><a href="module_node-menunav.html" title="node-menunav">node-menunav</a></li> |
|
114 <li class=""><a href="module_oop.html" title="oop">oop</a></li> |
|
115 <li class=""><a href="module_overlay.html" title="overlay">overlay</a></li> |
|
116 <li class=""><a href="module_plugin.html" title="plugin">plugin</a></li> |
|
117 <li class=""><a href="module_profiler.html" title="profiler">profiler</a></li> |
|
118 <li class=""><a href="module_queue-promote.html" title="queue-promote">queue-promote</a></li> |
|
119 <li class=""><a href="module_slider.html" title="slider">slider</a></li> |
|
120 <li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li> |
|
121 <li class=""><a href="module_substitute.html" title="substitute">substitute</a></li> |
|
122 <li class=""><a href="module_test.html" title="test">test</a></li> |
|
123 <li class=""><a href="module_widget.html" title="widget">widget</a></li> |
|
124 <li class=""><a href="module_widget-position.html" title="widget-position">widget-position</a></li> |
|
125 <li class=""><a href="module_widget-position-ext.html" title="widget-position-ext">widget-position-ext</a></li> |
|
126 <li class=""><a href="module_widget-stack.html" title="widget-stack">widget-stack</a></li> |
|
127 <li class=""><a href="module_widget-stdmod.html" title="widget-stdmod">widget-stdmod</a></li> |
|
128 <li class=""><a href="module_yui.html" title="yui">yui</a></li> |
|
129 </ul> |
|
130 </div> |
|
131 |
|
132 <div id="classList" class="module"> |
|
133 <h4>Classes</h4> |
|
134 <ul class="content"> |
|
135 <li class=""><a href="AsyncQueue.html" title="AsyncQueue">AsyncQueue</a></li> |
|
136 </ul> |
|
137 </div> |
|
138 |
|
139 <div id="fileList" class="module"> |
|
140 <h4>Files</h4> |
|
141 <ul class="content"> |
|
142 <li class=""><a href="async-queue.js.html" title="async-queue.js">async-queue.js</a></li> |
|
143 </ul> |
|
144 </div> |
|
145 |
|
146 |
|
147 |
|
148 |
|
149 |
|
150 </div> |
|
151 </div> |
|
152 </div> |
|
153 <div id="ft"> |
|
154 <hr /> |
|
155 Copyright © 2009 Yahoo! Inc. All rights reserved. |
|
156 </div> |
|
157 </div> |
|
158 <script type="text/javascript"> |
|
159 ALL_YUI_PROPS = [{"access": "", "host": "AsyncQueue", "name": "add", "url": "AsyncQueue.html#method_add", "type": "method"}, {"access": "", "host": "AsyncQueue", "name": "AsyncQueue.defaults", "url": "AsyncQueue.html#property_AsyncQueue.defaults", "type": "property"}, {"access": "", "host": "AsyncQueue", "name": "complete", "url": "AsyncQueue.html#event_complete", "type": "event"}, {"access": "protected", "host": "AsyncQueue", "name": "_defAddFn", "url": "AsyncQueue.html#method__defAddFn", "type": "method"}, {"access": "", "host": "AsyncQueue", "name": "defaults", "url": "AsyncQueue.html#property_defaults", "type": "property"}, {"access": "protected", "host": "AsyncQueue", "name": "_defExecFn", "url": "AsyncQueue.html#method__defExecFn", "type": "method"}, {"access": "protected", "host": "AsyncQueue", "name": "_defPromoteFn", "url": "AsyncQueue.html#method__defPromoteFn", "type": "method"}, {"access": "protected", "host": "AsyncQueue", "name": "_defRemoveFn", "url": "AsyncQueue.html#method__defRemoveFn", "type": "method"}, {"access": "protected", "host": "AsyncQueue", "name": "_defShiftFn", "url": "AsyncQueue.html#method__defShiftFn", "type": "method"}, {"access": "protected", "host": "AsyncQueue", "name": "_execute", "url": "AsyncQueue.html#method__execute", "type": "method"}, {"access": "", "host": "AsyncQueue", "name": "getCallback", "url": "AsyncQueue.html#method_getCallback", "type": "method"}, {"access": "", "host": "AsyncQueue", "name": "indexOf", "url": "AsyncQueue.html#method_indexOf", "type": "method"}, {"access": "protected", "host": "AsyncQueue", "name": "_init", "url": "AsyncQueue.html#method__init", "type": "method"}, {"access": "protected", "host": "AsyncQueue", "name": "_initEvents", "url": "AsyncQueue.html#method__initEvents", "type": "method"}, {"access": "", "host": "AsyncQueue", "name": "isRunning", "url": "AsyncQueue.html#method_isRunning", "type": "method"}, {"access": "", "host": "AsyncQueue", "name": "next", "url": "AsyncQueue.html#method_next", "type": "method"}, {"access": "", "host": "AsyncQueue", "name": "pause", "url": "AsyncQueue.html#method_pause", "type": "method"}, {"access": "protected", "host": "AsyncQueue", "name": "_prepare", "url": "AsyncQueue.html#method__prepare", "type": "method"}, {"access": "", "host": "AsyncQueue", "name": "promote", "url": "AsyncQueue.html#method_promote", "type": "method"}, {"access": "", "host": "AsyncQueue", "name": "remove", "url": "AsyncQueue.html#method_remove", "type": "method"}, {"access": "", "host": "AsyncQueue", "name": "run", "url": "AsyncQueue.html#method_run", "type": "method"}, {"access": "protected", "host": "AsyncQueue", "name": "_running", "url": "AsyncQueue.html#property__running", "type": "property"}, {"access": "protected", "host": "AsyncQueue", "name": "_schedule", "url": "AsyncQueue.html#method__schedule", "type": "method"}, {"access": "", "host": "AsyncQueue", "name": "size", "url": "AsyncQueue.html#method_size", "type": "method"}, {"access": "", "host": "AsyncQueue", "name": "stop", "url": "AsyncQueue.html#method_stop", "type": "method"}]; |
|
160 </script> |
|
161 </body> |
|
162 </html> |