Documentation
¶
Overview ¶
Package workqueue contains a workqueue with bounded concurrency.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkQueue ¶
type WorkQueue struct {
// contains filtered or unexported fields
}
WorkQueue is a simple work queue with bounded concurrency, optionally buffered. Intended for IO operations. The queue will work through work items with the given level of concurrency.
func (*WorkQueue) Chan ¶
func (p *WorkQueue) Chan() chan<- func()
Chan returns the ingestion channel for incoming work.
Click to show internal directories.
Click to hide internal directories.