Skip to content

Instantly share code, notes, and snippets.

@ghuntley
Created July 26, 2011 01:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ghuntley/1105734 to your computer and use it in GitHub Desktop.
Save ghuntley/1105734 to your computer and use it in GitHub Desktop.
(function() {
/*
@class Ext.TaskMgr
@extends Ext.util.TaskRunner
A static {@link Ext.util.TaskRunner} instance that can be used to start and stop arbitrary tasks. See
{@link Ext.util.TaskRunner} for supported methods and task config properties.
<pre><code>
// Start a simple clock task that updates a div once per second
var task = {
run: function(){
Ext.fly('clock').update(new Date().format('g:i:s A'));
},
interval: 1000 //1 second
}
Ext.TaskMgr.start(task);
</code></pre>
<p>See the {@link #start} method for details about how to configure a task object.</p>
@singleton
*/
}).call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment