Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkQueue ¶
type WorkQueue[T WorkQueueItem] struct { // contains filtered or unexported fields }
func NewWorkQueue ¶
func NewWorkQueue[T WorkQueueItem](bufferSize int, concurrency int, handler WorkQueueFn[T]) *WorkQueue[T]
type WorkQueueFn ¶
type WorkQueueFn[T WorkQueueItem] func(q *WorkQueue[T], item T) error
type WorkQueueItem ¶
type WorkQueueItem interface {
Id() string
}
Click to show internal directories.
Click to hide internal directories.