Versions in this module Expand all Collapse all v0 v0.1.1 Nov 13, 2025 Changes in this version + const UnlimitedCapacity + type MutateFunc func(length int, capacity int) + type QueueHooks struct + OnDequeue func(item T, cycle int) + OnEnqueue func(item T, cycle int) + type TrackedQueue struct + func NewTrackedQueue[T any](name string, capacity int, mutate MutateFunc, hooks QueueHooks[T]) *TrackedQueue[T] + func (q *TrackedQueue[T]) CanAccept(itemsCount int) bool + func (q *TrackedQueue[T]) Capacity() int + func (q *TrackedQueue[T]) Enqueue(item T, cycle int) bool + func (q *TrackedQueue[T]) Items() []T + func (q *TrackedQueue[T]) Len() int + func (q *TrackedQueue[T]) Name() string + func (q *TrackedQueue[T]) PopFront(cycle int) (T, bool) + func (q *TrackedQueue[T]) RemoveAt(idx int, cycle int) (T, bool) + func (q *TrackedQueue[T]) RemoveMatch(match func(T) bool, cycle int) (T, bool) + func (q *TrackedQueue[T]) SetCapacity(capacity int) v0.1.0 Nov 12, 2025