Internal
Type of priority queue data.
The priority queue maximum size.
The priority queue size.
The number of filled prioritized buckets.
The number of filled prioritized buckets.
Whether priority is enabled.
Whether priority is enabled.
Enables/disables priority.
Whether to enable priority.
Clears the priority queue.
Deletes the given data from the priority queue.
Data to delete.
true
if the data was deleted, false
otherwise.
Dequeue data from the priority queue.
Optional
bucket: numberThe prioritized bucket to dequeue from.
The dequeued data or undefined
if the priority queue is empty.
Enqueue data into the priority queue.
Data to enqueue.
Optional
priority: numberPriority of the data. Lower values have higher priority.
The new size of the priority queue.
Priority queue.