queue

package
Version: v3.4.12 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: Apache-2.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 {
	sync.Mutex
	// contains filtered or unexported fields
}

Queue implements a FIFO data structure.

func (*Queue) Append

func (q *Queue) Append(data interface{})

Append adds the data to the end of the Queue.

func (*Queue) Empty

func (q *Queue) Empty() bool

Empty returns true if the Queue is empty.

func (*Queue) Len

func (q *Queue) Len() int

Len returns the current length of the Queue

func (*Queue) Next

func (q *Queue) Next() (interface{}, bool)

Next returns the data at the front of the Queue.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL