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.
Click to show internal directories.
Click to hide internal directories.