queue

package
v0.0.0-...-4381ce5 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 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
}

NOT THREAD SAFE

func (*Queue[T]) Empty

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

func (*Queue[T]) Peek

func (q *Queue[T]) Peek() (T, error)

func (*Queue[T]) Pop

func (q *Queue[T]) Pop() (T, error)

func (*Queue[T]) Push

func (q *Queue[T]) Push(items ...T)

func (*Queue[T]) Size

func (q *Queue[T]) Size() int

Jump to

Keyboard shortcuts

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