Mar 31, 2011, 10:14 AM
TaskManager.Task
Hi.
Please, add new property "RunOnce" in Task for control, that would avoid duplication of running the same task, because then it can not be stopped.
Please, add new property "RunOnce" in Task for control, that would avoid duplication of running the same task, because then it can not be stopped.
Ext.net.TaskManager.prototype.startTask = function (task) {
if (this.executing) return;
task = this.getTask(task);
if (task.running) return;
task.running = true;
if (task.onstart) { task.onstart.apply(task.scope || task); }
this.runner.start(task);
}
Ext.net.TaskManager.prototype.stopTask = function (task) {
this.runner.stop(task = this.getTask(task));
task.running = false;
}