queue

package
v0.0.0-...-131c681 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FixedQueue

type FixedQueue[T interface{}] struct {
	// contains filtered or unexported fields
}

func NewFixedQueue

func NewFixedQueue[T interface{}](ctx context.Context, size int) *FixedQueue[T]

func (*FixedQueue[T]) Fetch

func (q *FixedQueue[T]) Fetch(ctx context.Context) <-chan T

func (*FixedQueue[T]) GetMaxSize

func (q *FixedQueue[T]) GetMaxSize() int

func (*FixedQueue[T]) Pop

func (q *FixedQueue[T]) Pop() *T

func (*FixedQueue[T]) Push

func (q *FixedQueue[T]) Push(element T)

Jump to

Keyboard shortcuts

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