queue

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: GPL-3.0 Imports: 1 Imported by: 3

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 is a simple concurrent safe queue

func New

func New(hint int64) *Queue

New is a constructor for a new concurrent safe queue.

func (*Queue) Copy

func (q *Queue) Copy() []interface{}

Copy get the copy of queue.

func (*Queue) Last added in v0.16.0

func (q *Queue) Last() interface{}

Last returns the last of item.

func (*Queue) Len

func (q *Queue) Len() int64

Len returns the number of items in this queue.

func (*Queue) Pop

func (q *Queue) Pop() interface{}

Pop returns the head of items.

func (*Queue) Put

func (q *Queue) Put(items ...interface{})

Put add the item to the queue.

Jump to

Keyboard shortcuts

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