Help us shape the future of Go! Take the 2026 Go Developer Survey

cqueue

package
v1.34.9 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AtomicLIFO

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

AtomicLIFO implements an atomic last-in-first-out linked-list.

func (*AtomicLIFO[T]) Pop

func (q *AtomicLIFO[T]) Pop() T

Pop atomically removes and returns the top value of the LIFO. It returns the zero value (nil) if the LIFO is empty.

func (*AtomicLIFO[T]) Push

func (q *AtomicLIFO[T]) Push(value T)

Push atomically adds a value to the top of the LIFO.

Jump to

Keyboard shortcuts

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