bounded

package
v0.2024.5 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue[T any] struct {
	// contains filtered or unexported fields
}

func NewQueue

func NewQueue[T any](limit int) *Queue[T]

func (*Queue[T]) Empty

func (q *Queue[T]) Empty() bool

func (*Queue[T]) Full

func (q *Queue[T]) Full() bool

func (*Queue[T]) Peek

func (q *Queue[T]) Peek() (item T, ok bool)

func (*Queue[T]) Pop

func (q *Queue[T]) Pop() (item T, ok bool)

func (*Queue[T]) PushBack

func (q *Queue[T]) PushBack(item T) (discarded bool)

Jump to

Keyboard shortcuts

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