Documentation
¶
Overview ¶
Package fifo provides an ownership-safe in-memory first-in, first-out queue for core's internal adapters.
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 }
Queue owns an ordered collection of values waiting to be taken.
Removing values clears their slots immediately. After a burst recedes, Queue also keeps its backing storage proportional to the live suffix instead of retaining the largest historical backlog. The zero value is ready.
Click to show internal directories.
Click to hide internal directories.