A queue that you can
enqueue into (with priority) and
new PriorityQueue(name [, callbacks])
Creates a priority queue instance.
A PriorityQueue works like a CompletionQueue. Except:
- PriorityQueues run tasks in order of their
- PriorityQueues only allows one instance of a given
fnto be enqueued at one time.
The name of the queue used for logging.
Optional. An object containing callbacks
onFirstTask- is called when the first task is added to an empty queue
onComplete- is called when the queue is empty.
An instance of