last_in_one_out_queue

package
v0.0.0-...-dfed899 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL