esqueue

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delay

func Delay(z int)

Types

type EsQueue

type EsQueue[T any] struct {
	// contains filtered or unexported fields
}

lock free queue

func NewEsQueue

func NewEsQueue[T any](capacity uint32) *EsQueue[T]

func (*EsQueue[T]) Capaciity

func (q *EsQueue[T]) Capaciity() uint32

func (*EsQueue[T]) Get

func (q *EsQueue[T]) Get() (val T, ok bool, quantity uint32)

get queue functions

func (*EsQueue[T]) Gets

func (q *EsQueue[T]) Gets(values []T) (gets, quantity uint32)

gets queue functions

func (*EsQueue[T]) Put

func (q *EsQueue[T]) Put(val T) (ok bool, quantity uint32)

put queue functions

func (*EsQueue[T]) Puts

func (q *EsQueue[T]) Puts(values []T) (puts, quantity uint32)

puts queue functions

func (*EsQueue[T]) Quantity

func (q *EsQueue[T]) Quantity() uint32

func (*EsQueue[T]) String

func (q *EsQueue[T]) String() string

Jump to

Keyboard shortcuts

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