Documentation
¶
Overview ¶
Package queue implements a concurrent queue of reconcile items.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item[T comparable] struct { // contains filtered or unexported fields }
Item returns a value from the queue.
Once the Value is processed, either Release() or Requeue() must be called.
func (*Item[T]) Release ¶
func (item *Item[T]) Release()
Release removes the Item from the queue.
Calling Release after Requeue is a no-op.
type Queue ¶
type Queue[T comparable] struct { // contains filtered or unexported fields }
Queue is a concurrent queue of items to be reconciled.
Queue is goroutine safe, Run() method should be called in a separate goroutine for the queue to operate.
func (*Queue[T]) Len ¶
Len returns the number of items in the queue.
Len includes items which are on-hold.
Click to show internal directories.
Click to hide internal directories.