queue

package
v0.0.0-...-e079363 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2017 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 FIFO

type FIFO interface {
	// Push to the end of a queue.
	Push(val interface{})
	// Pop from the front of a queue.
	Pop() interface{}
	// Same as Pop but doesn't remove the element from the queue.
	// The returned value should be read only.
	Front() interface{}
	// Get length of queue.
	Len() int
	// Check if queue is empty.
	IsEmpty() bool
}

Read Write thread safe FIFO queue data structure.

func NewFIFO

func NewFIFO() FIFO

Jump to

Keyboard shortcuts

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