Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DelayQueue ¶
type DelayQueue[T Delayed] struct { // contains filtered or unexported fields }
func NewDelayQueue ¶
func NewDelayQueue[T Delayed](cmp comparator.Comparable[T]) *DelayQueue[T]
func (*DelayQueue[T]) Add ¶
func (dq *DelayQueue[T]) Add(val T)
func (*DelayQueue[T]) Take ¶
func (dq *DelayQueue[T]) Take(quit <-chan struct{}) (val T, exit bool)
type Delayed ¶
type Delayed interface {
DelayMs() int64
comparable
}
Click to show internal directories.
Click to hide internal directories.