AbstractSealedRemoves all elements from the queue
Optionalcondition: (t: T) => booleanWhether an element matching the condition function exists
SealedWhether 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 AbstractreorderSorts the elements in the queue
Stores a list of elements.
Dynamically updates ordering to always pop the highest "priority", based on implementation of
reorder.