X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..3789b528d8dd8aad4558e38e22d775bcab1cbd36:/docs/output/Ext.util.TaskRunner.js diff --git a/docs/output/Ext.util.TaskRunner.js b/docs/output/Ext.util.TaskRunner.js new file mode 100644 index 00000000..61e022a4 --- /dev/null +++ b/docs/output/Ext.util.TaskRunner.js @@ -0,0 +1,146 @@ +Ext.data.JsonP.Ext_util_TaskRunner({ + "tagname": "class", + "name": "Ext.util.TaskRunner", + "doc": "

Provides the ability to execute one or more arbitrary tasks in a multithreaded\nmanner. Generally, you can use the singleton Ext.TaskManager instead, but\nif needed, you can create separate instances of TaskRunner. Any number of\nseparate tasks can be started at any time and will run independently of each\nother. Example usage:

\n\n
// Start a simple clock task that updates a div once per second\nvar updateClock = function(){\n    Ext.fly('clock').update(new Date().format('g:i:s A'));\n} \nvar task = {\n    run: updateClock,\n    interval: 1000 //1 second\n}\nvar runner = new Ext.util.TaskRunner();\nrunner.start(task);\n\n// equivalent using TaskManager\nExt.TaskManager.start({\n    run: updateClock,\n    interval: 1000\n});\n\n
\n\n\n

See the start method for details about how to configure a task object.

\n\n\n

Also see Ext.util.DelayedTask.

\n", + "extends": null, + "mixins": [ + + ], + "alternateClassNames": [ + + ], + "xtype": null, + "author": null, + "docauthor": null, + "singleton": false, + "private": false, + "cfg": [ + + ], + "method": [ + { + "tagname": "method", + "name": "TaskRunner", + "member": "Ext.util.TaskRunner", + "doc": "\n", + "params": [ + { + "type": "Number", + "name": "interval", + "doc": "

(optional) The minimum precision in milliseconds supported by this TaskRunner instance\n(defaults to 10)

\n", + "optional": true + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/util/TaskManager.js", + "linenr": 1, + "html_filename": "TaskManager.html", + "href": "TaskManager.html#Ext-util-TaskRunner-method-constructor", + "shortDoc": "\n" + }, + { + "tagname": "method", + "name": "start", + "member": "Ext.util.TaskRunner", + "doc": "

Starts a new task.

\n", + "params": [ + { + "type": "Object", + "name": "task", + "doc": "

A config object that supports the following properties:

\n\n\n

Before each invocation, Ext injects the property taskRunCount into the task object so\nthat calculations based on the repeat count can be performed.

\n\n", + "optional": true + } + ], + "return": { + "type": "Object", + "doc": "

The task

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/util/TaskManager.js", + "linenr": 104, + "html_filename": "TaskManager.html", + "href": "TaskManager.html#Ext-util-TaskRunner-method-start", + "shortDoc": "

Starts a new task.

\n" + }, + { + "tagname": "method", + "name": "stop", + "member": "Ext.util.TaskRunner", + "doc": "

Stops an existing running task.

\n", + "params": [ + { + "type": "Object", + "name": "task", + "doc": "

The task to stop

\n", + "optional": false + } + ], + "return": { + "type": "Object", + "doc": "

The task

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/util/TaskManager.js", + "linenr": 137, + "html_filename": "TaskManager.html", + "href": "TaskManager.html#Ext-util-TaskRunner-method-stop", + "shortDoc": "

Stops an existing running task.

\n" + }, + { + "tagname": "method", + "name": "stopAll", + "member": "Ext.util.TaskRunner", + "doc": "

Stops all tasks that are currently running.

\n", + "params": [ + + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/util/TaskManager.js", + "linenr": 148, + "html_filename": "TaskManager.html", + "href": "TaskManager.html#Ext-util-TaskRunner-method-stopAll", + "shortDoc": "

Stops all tasks that are currently running.

\n" + } + ], + "property": [ + + ], + "event": [ + + ], + "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/util/TaskManager.js", + "linenr": 1, + "html_filename": "TaskManager.html", + "href": "TaskManager.html#Ext-util-TaskRunner", + "cssVar": [ + + ], + "cssMixin": [ + + ], + "component": false, + "superclasses": [ + + ], + "subclasses": [ + "Ext.TaskManager" + ], + "mixedInto": [ + + ], + "allMixins": [ + + ] +}); \ No newline at end of file