Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Holder ¶
type Holder[T any] struct { // contains filtered or unexported fields }
Holder provides synchronized access to a *Queue[T].
func (*Holder[T]) Acquire ¶
Acquire attempts to acquire the *Queue[T]. If the *Queue[T] has already been acquired the call blocks. When the *Queue[T] is no longer required, you MUST call Release() to relinquish acquisition.
type Queue ¶
type Queue[T any] struct { // contains filtered or unexported fields }
Queue[T] is a segmented FIFO queue of Ts.
func (*Queue[T]) Dequeue ¶
func (q *Queue[T]) Dequeue() *T
Dequeue removes and returns the item from the front of the queue.
Click to show internal directories.
Click to hide internal directories.