Abstract
Sealed
Removes all elements from the queue
Optional
condition: (t: T) => booleanWhether an element matching the condition function exists
Sealed
Whether the queue is empty
Removes the first element matching the condition
An optional condition function (defaults to a function that always returns true
)
Whether a removal occurred
Protected
Abstract
reorderSorts the elements in the queue
Stores a list of elements.
Dynamically updates ordering to always pop the highest "priority", based on implementation of
reorder
.