Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DelayQueue ¶
type DelayQueue[T any] struct { Items <-chan T // contains filtered or unexported fields }
DelayQueue is a queue where items can only be pulled after a certain delay.
func NewDelayQueue ¶
func NewDelayQueue[T any](ctx context.Context) *DelayQueue[T]
func (*DelayQueue[T]) Remove ¶
func (dq *DelayQueue[T]) Remove(id uint) bool
Click to show internal directories.
Click to hide internal directories.