Returns true if queue is empty
Is queue full? Returns false if no capacity has been set
Number of items in queue
Adds event listener.
Events
Event name
Event handler
Enqueues (adds items to back of queue). If a capacity is set, not all items might be added.
Rest
...toAdd: readonly Readonly<{ How many items were added
Adds an item with a given priority
Item
Priority (higher numeric value means higher priority)
Protected
fireFire event
Type of event
Arguments for event
Protected
onProtected
onProtected
onRemove event listener
Simple priority queue implementation. Higher numbers mean higher priority.