package
0.38.0-preview.0
Repository: https://github.com/onflow/flow-go.git
Documentation: pkg.go.dev

# Functions

NewFifoQueue is the Constructor for FifoQueue.
WithLengthMetricObserver attaches a length observer which calls the given observe function.
WithLengthObserver is a constructor option for NewFifoQueue.

# Constants

CapacityUnlimited specifies the largest possible capacity for a FifoQueue.

# Structs

FifoQueue implements a FIFO queue with max capacity and length observer.

# Type aliases

ConstructorOptions are optional arguments for the `NewFifoQueue` constructor to specify properties of the FifoQueue.
QueueLengthObserver is a optional callback that can be provided to the `NewFifoQueue` constructor (via `WithLengthObserver` option).