queue

package
v0.13.0-alpha.95 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 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 Queue

type Queue[T comparable] struct {
	// contains filtered or unexported fields
}

func NewQueue

func NewQueue[T comparable]() *Queue[T]

func (*Queue[T]) AddWeight

func (q *Queue[T]) AddWeight(item T, weight int) <-chan struct{}

func (*Queue[T]) Get

func (q *Queue[T]) Get() (T, func(), bool)

func (*Queue[T]) GetOrWaitWithDone

func (q *Queue[T]) GetOrWaitWithDone(done <-chan struct{}) (T, func(), bool)

func (*Queue[T]) Len

func (q *Queue[T]) Len() int

Jump to

Keyboard shortcuts

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