package
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Sep 4, 2026
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Queue[T any] struct {
}
mutex-guarded FIFO queue of T
func (q *Queue[T]) Dequeue() (item T, ok bool)
ok is false when the queue is empty
func (q *Queue[T]) Enqueue(item T)
drops every item for which match reports true and returns how many were dropped
Source Files
¶
Click to show internal directories.
Click to hide internal directories.