queue

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 1 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]() (q *Queue[T])

func (*Queue[T]) Dequeue

func (q *Queue[T]) Dequeue() (value T, err error)

func (*Queue[T]) Enqueue

func (q *Queue[T]) Enqueue(values []T)

func (*Queue[T]) IsEmpty

func (q *Queue[T]) IsEmpty() (is bool)

Jump to

Keyboard shortcuts

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