Versions in this module Expand all Collapse all v0 v0.0.1 Oct 15, 2026 Changes in this version + type FIFO struct + func NewFIFO[T any](capacity int) *FIFO[T] + func (q *FIFO[T]) Cap() int + func (q *FIFO[T]) Close() + func (q *FIFO[T]) Len() int + func (q *FIFO[T]) Pop() (T, bool) + func (q *FIFO[T]) PopTimeout(d time.Duration) (T, bool) + func (q *FIFO[T]) Push(v T) bool + func (q *FIFO[T]) TryPop() (T, bool) + func (q *FIFO[T]) TryPush(v T) bool + type Item struct + Priority int + RunAt time.Time + Seq uint64 + Value T + type PriorityQueue struct + func NewPriorityQueue[T any](capacity int) *PriorityQueue[T] + func (q *PriorityQueue[T]) Cap() int + func (q *PriorityQueue[T]) Close() + func (q *PriorityQueue[T]) Closed() bool + func (q *PriorityQueue[T]) DropOldestPush(it Item[T]) bool + func (q *PriorityQueue[T]) DropOldestPushValue(it Item[T]) (Item[T], bool, bool) + func (q *PriorityQueue[T]) Len() int + func (q *PriorityQueue[T]) Pop() (Item[T], bool) + func (q *PriorityQueue[T]) PopTimeout(timeout time.Duration) (Item[T], bool) + func (q *PriorityQueue[T]) Push(it Item[T]) bool + func (q *PriorityQueue[T]) TryPop() (Item[T], bool) + type Ring struct + func NewRing[T any](size uint64) *Ring[T] + func (r *Ring[T]) Cap() uint64 + func (r *Ring[T]) Len() uint64 + func (r *Ring[T]) TryPop() (T, bool) + func (r *Ring[T]) TryPush(v T) bool