Add a prioritized task to the queue.
Note that a lower priority number means that the task will be prioritized.
Ie.: 0
is the highest priority value.
Returns the number of tasks that are currently inflight.
Returns the number of uncompleted tasks on the queue.
Whether the task processing is currently paused.
Pause queue execution
Resume queue execution
The number of tasks that will be executed concurrently. Note that if concurrency > 1, the queue cannot guarantee FIFO since the tasks' execution times may vary.