Task Class
A task is used by the Task Manager to do an asyncronous task (like loading or playback)
Constructor
Item Index
Properties
Methods
cancel
()
Bool
Cancel the task - for use in inherited classes
Returns:
Bool:
If the cancel was successful
destroy
()
If this task has been __isDestroyed 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
-
callback
Make a task but don't load
start
(
-
callback
Start the load. This implementation is a NOP.
Parameters:
-
callback
FunctionCallback to call when the load is done