Instantiate the queue with the given queue list.
Give the list of queueables to start in this queue.
The type of list to create when no queued list is given.
The class used to wrap queued items.
Take a queued task from the front of the queue and run it if ready. A task which is not ready yet is kept in the queue (never dropped), a task which is still running is reported as blocking and left to finish on its own, and completed tasks are discarded.
Return true if the queue is empty (there are no tasks in the queue list)
Add a queued task to the end of the queue
Add a new queueable to the end of the queue
Take a look at the next queued task
Remove the next queued item and return it.
Get the length of the current queue.
StaticfromConvert an array to a TaskQueue.
An array of values which will be converted to queueables in this queue
The class to use for each queueable
The class to use to manage the queueables
Maintain a series of queued tasks (Queueables): dequeue() takes the next task from the front and RUNS it, giving each task in turn a chance to run (a task which is not ready, or which has not finished, is placed at the back again). This is a task scheduler, for a plain first-in-first-out collection of items use Queue.