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[K comparable, V any] 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[K, V]) Get ¶ added in v1.11.0
func (item *Item[K, V]) Get() (K, V)
Get returns the key and value from the queue.
type Queue ¶
type Queue[K comparable, V any] 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[K, V]) 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.