X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..ddde20c4d4ac6a8d53de079761155de813845b3c:/docs/source/TaskMgr.html diff --git a/docs/source/TaskMgr.html b/docs/source/TaskMgr.html index cd73414a..5fa07a19 100644 --- a/docs/source/TaskMgr.html +++ b/docs/source/TaskMgr.html @@ -1,11 +1,18 @@ - -
-/** + + + +The source code + + + + +/*! + * Ext JS Library 3.2.0 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/** * @class Ext.util.TaskRunner * Provides the ability to execute one or more arbitrary tasks in a multithreaded * manner. Generally, you can use the singleton {@link Ext.TaskMgr} instead, but @@ -31,6 +38,7 @@ Ext.TaskMgr.start({ }); *+ *See the {@link #start} method for details about how to configure a task object.
* Also see {@link Ext.util.DelayedTask}. * * @constructor @@ -102,21 +110,25 @@ Ext.util.TaskRunner = function(interval){ /** * Starts a new task. * @method start - * @param {Object} task A config object that supports the following properties:
run
: Functionargs
argument if specified. If a
- * particular scope is required, be sure to specify it using the scope
argument.A config object that supports the following properties:
run
: FunctionThe function to execute each time the task is invoked. The
+ * function will be called at each interval and passed the args
argument if specified, and the
+ * current invocation count if not.
If a particular scope (this
reference) is required, be sure to specify it using the scope
argument.
Return false
from this function to terminate the task.
interval
: Numberargs
: Arrayrun
.run
. If not specified, the current invocation count is passed.
* scope
: Objectrun
function. Defaults to the task config object.duration
: Numberduration
: Numberrepeat
: Numberrepeat
: NumberBefore each invocation, Ext injects the property taskRunCount
into the task object so
+ * that calculations based on the repeat count can be performed.
See the {@link #start} method for details about how to configure a task object.
* @singleton */ -Ext.TaskMgr = new Ext.util.TaskRunner(); - +Ext.TaskMgr = new Ext.util.TaskRunner(); + \ No newline at end of file