Package: | Ext.util |
Defined In: | TaskMgr.js |
Class: | TaskRunner |
Subclasses: | TaskMgr |
Extends: | Object |
|
Provides the ability to execute one or more arbitrary tasks in a multithreaded
manner. Generally, you can use the singleton
Ext.TaskMgr instead, but
if needed, you can create separate instances of TaskRunner. Any number of
separate tasks can be started at any time and will run independently of each
@@ -19,10 +19,10 @@ Ext.TaskMgr.start({
run: updateClock,
interval: 1000
});
-Also see
Ext.util.DelayedTask.
Public Properties
This class has no public properties.
Public Methods
|
| TaskRunner( [Number interval ] )
+Also see Ext.util.DelayedTask.Public PropertiesThis class has no public properties. Public Methods|
| TaskRunner( [Number interval ] )
| TaskRunner | | start( Object task )
- :
+(defaults to 10)Returns: | TaskRunner | | start( Object task )
+ :
ObjectStarts a new task. Starts a new task. Returns: | TaskRunner | | stop( Object task )
- :
- ObjectStops an existing running task. Stops an existing running task. Parameters:task : ObjectThe task to stop Returns: | TaskRunner | | stopAll()
- :
+Returns: | TaskRunner | | stop( Object task )
+ :
+ ObjectStops an existing running task. Stops an existing running task. Parameters:task : ObjectThe task to stop Returns: | TaskRunner | | stopAll()
+ :
voidStops all tasks that are currently running. Stops all tasks that are currently running. | TaskRunner |
Public EventsThis class has no public events.
\ No newline at end of file
|