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:
-
callback
FunctionCallback passed to start()
_onTaskDone
(
private
-
ev
Callback for when an task is done
Parameters:
-
ev
TaskEventTask 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:
-
result
TypeThe resulting data from the return
-
manager
TaskManagerThe reference to the manager
initialize
(
-
id
-
list
-
callback
Make the list task but don't start.
load
(
-
callback
Start the load
Parameters:
-
callback
FunctionCallback to call when the task is done
start
(
-
callback
Start the load. This implementation is a NOP.
Parameters:
-
callback
FunctionCallback 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