queue

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptionPrioQueue

type OptionPrioQueue func(*PrioQueue) error

func OptionQueueLen

func OptionQueueLen(length int) OptionPrioQueue

type PrioQueue

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

func NewPrioQueue

func NewPrioQueue(opts ...OptionPrioQueue) (*PrioQueue, error)

default queue priority 1, the higher the value, the higher the priority.

func (*PrioQueue) Available

func (pq *PrioQueue) Available() int

func (*PrioQueue) Len

func (pq *PrioQueue) Len() int

func (*PrioQueue) Pop

func (pq *PrioQueue) Pop() interface{}

func (*PrioQueue) PopSync

func (pq *PrioQueue) PopSync() interface{}

func (*PrioQueue) PrioPush

func (pq *PrioQueue) PrioPush(prio int, data interface{}) error

func (*PrioQueue) Push

func (pq *PrioQueue) Push(data interface{}) error

Jump to

Keyboard shortcuts

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