Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LastInOneOutQueue ¶
type LastInOneOutQueue[T any] struct { // contains filtered or unexported fields }
func New ¶
func New[T any]() *LastInOneOutQueue[T]
func (*LastInOneOutQueue[T]) Enqueue ¶
func (q *LastInOneOutQueue[T]) Enqueue(item T)
Enqueue puts the item in the queue. It replaces any previously-queued item.
func (*LastInOneOutQueue[T]) Item ¶
func (q *LastInOneOutQueue[T]) Item() <-chan T
Item returns the channel on which queued items can be dequeued.
func (*LastInOneOutQueue[T]) Run ¶
func (q *LastInOneOutQueue[T]) Run(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.