queue

package
v1.2024.116 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EsQueue

type EsQueue struct {
	// contains filtered or unexported fields
}

lock free queue

func NewQueue

func NewQueue(capaciity int64) *EsQueue

func (*EsQueue) Capaciity

func (q *EsQueue) Capaciity() int64

func (*EsQueue) Len

func (q *EsQueue) Len() int64

func (*EsQueue) Pop

func (q *EsQueue) Pop() (val interface{}, ok bool, quantity int64)

get queue functions

func (*EsQueue) Push

func (q *EsQueue) Push(val interface{}) (ok bool, quantity int64)

put queue functions

func (*EsQueue) String

func (q *EsQueue) String() string

Jump to

Keyboard shortcuts

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