TaskQueueManager constructor
Array of task queue item to execute
Private
#taskPrivate number to assign a unique id to each task queue item
Add a task queue item to the queue
callback to add to the task queue item
Optional
args: anyparameters of the task queue item to add
Remove a task queue item from the queue
id of the new task queue item to remove
Execute the tasks queue array
Optional
args: any
Used to keep track of a bunch of callbacks and execute them in the right order when needed