Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithWorkerCount ¶
WithWorkerCount sets the number of workers to start.
Types ¶
type WQueue ¶
type WQueue[T any] struct { // contains filtered or unexported fields }
WQueue is a queue of work to be done (with associated workers).
func (*WQueue[T]) Drain ¶
func (wq *WQueue[T]) Drain() []T
Drain removes all items from the queue and returns them.
Click to show internal directories.
Click to hide internal directories.