goring

package
v0.0.0-...-be88ffe Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: Apache-2.0, Apache-2.0 Imports: 2 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(initialSize int64) *Queue

func (*Queue) Empty

func (q *Queue) Empty() bool

func (*Queue) Length

func (q *Queue) Length() int64

func (*Queue) Pop

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

single consumer

func (*Queue) PopMany

func (q *Queue) PopMany(count int64) ([]interface{}, bool)

func (*Queue) Push

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

Jump to

Keyboard shortcuts

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