Quartz::HeapSet(T)
Inherits Quartz::PriorityQueue / Reference / Object
Event set based on a array-based min-heap similar to BinaryHeap, but
optimized for higher event collision rate.
Instead of adding all events in the heap, simultaneous events are gathered and as a set in the heap.
To avoid O(n) complexity when deleting an arbitrary element, a map is used to store indices for each event in the event set.
Constructors
new
SourceInstance methods
clear
Sourcedelete(priority : Duration, event : T) : T | Nil
Sourceempty?
Sourceheapify!
Sourceinspect(io)
Sourcenext_priority
Sourcenext_priority
Sourcepeek
Sourcepeek
Sourcepeek?
Sourcepop
Sourcepop_imminents
Sourcepush(priority : Duration, value : T) : self
Sourceto_a
Sourceto_slice
Source