blocking

package
v0.0.0-...-1334a7b Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 4 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 any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any](handoff bool) *Queue[T]

func (*Queue[T]) Close

func (q *Queue[T]) Close()

func (*Queue[T]) Init

func (q *Queue[T]) Init(handoff bool) *Queue[T]

func (*Queue[T]) Push

func (q *Queue[T]) Push(v T) bool

func (*Queue[T]) RawPop

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

func (*Queue[T]) SharedPop

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

func (*Queue[T]) UniquePop

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

func (*Queue[T]) Wait

func (q *Queue[T]) Wait()

Wait ensures that all incoming Pushes observe that the queue is closed.

Jump to

Keyboard shortcuts

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