ListTask Class
A task that performs a list of tasks
Constructor
Item Index
Methods
_onAllTasksComplete
(
private
-
callback
Callback for when the whole list is done
Parameters:
-
callbackFunctionCallback passed to start()
_onTaskDone
(
private
-
ev
Callback for when an task is done
Parameters:
-
evTaskEventTask Loaded event
cancel
()
Cancel the TaskManager used for the list of tasks. As the individual tasks are not kept track of, this always returns true.
Returns:
Returns true.
destroy
()
Don't use after this
done
(
-
result -
manager
Called from the task manager when a Task is finished
Parameters:
-
resultTypeThe resulting data from the return
-
managerTaskManagerThe reference to the manager
initialize
(
-
id -
list -
callback
Make the list task but don't start.
load
(
-
callback
Start the load
Parameters:
-
callbackFunctionCallback to call when the task is done
start
(
-
callback
Start the load. This implementation is a NOP.
Parameters:
-
callbackFunctionCallback to call when the load is done
Properties
_isDestroyed
Bool
protected
Bool to keep track if this has been destroyed
_results
Dictionary
private
The load results dictionary
