Versions in this module Expand all Collapse all v0 v0.1.0 Nov 30, 2022 Changes in this version + var ErrDisposed = errors.New(`queue: disposed`) + var ErrEmptyQueue = errors.New(`queue: empty queue`) + var ErrTimeout = errors.New(`queue: poll timed out`) + type Item interface + Compare func(other Item) int + type PriorityQueue struct + func NewPriorityQueue(hint int, allowDuplicates bool) *PriorityQueue + func (pq *PriorityQueue) Dispose() + func (pq *PriorityQueue) Disposed() bool + func (pq *PriorityQueue) Empty() bool + func (pq *PriorityQueue) Get(number int) ([]Item, error) + func (pq *PriorityQueue) Len() int + func (pq *PriorityQueue) Peek() Item + func (pq *PriorityQueue) Put(items ...Item) error