ring

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MIT 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