fifo

package
v3.0.0-...-e8b7a4c Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: GPL-3.0 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 struct {
	// contains filtered or unexported fields
}

Queue fifo queue

func NewQueue

func NewQueue() (q *Queue)

NewQueue creates a new and empty *fifo.Queue

func (*Queue) Add

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

Add an item to the end of the queue

func (*Queue) Len

func (q *Queue) Len() (length int)

Len Return the number of items in the queue

func (*Queue) Next

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

Next Remove the item at the head of the queue and return it. Returns nil when there are no items left in queue.

Jump to

Keyboard shortcuts

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