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 }
Queue represents a ring buffer.
func (*Queue[T]) Offer ¶
Offer adds an element to the queue and returns true. If the queue is full, it drops it and returns false.
Click to show internal directories.
Click to hide internal directories.