queue

package
v0.0.0-...-a8ae166 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: Apache-2.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 struct {
	// contains filtered or unexported fields
}

func New

func New(capacity int, onForcedDequeue func(interface{})) *Queue

func (*Queue) Cap

func (q *Queue) Cap() int

func (*Queue) Dequeue

func (q *Queue) Dequeue() (interface{}, error)

func (*Queue) Enqueue

func (q *Queue) Enqueue(item interface{})

func (*Queue) IsEmpty

func (q *Queue) IsEmpty() bool

func (*Queue) IsFull

func (q *Queue) IsFull() bool

func (*Queue) Len

func (q *Queue) Len() int

type UnderflowError

type UnderflowError struct {
}

func (UnderflowError) Error

func (UnderflowError) Error() string

Jump to

Keyboard shortcuts

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