Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PoolInterface ¶ added in v1.5.6
type PoolInterface interface { RunTaskChannel(tasks <-chan Task) CreateTaskChannel() <-chan Task CloseTaskChannel(tasks chan Task) Close() Errors() <-chan error Wait() }
PoolInterface represents the interface that a worker pool should implement.
func NewPool ¶ added in v1.5.3
func NewPool(poolSize uint) PoolInterface
NewPool creates a new Pool with the specified size.
type SemaphoreInterface ¶ added in v1.5.4
type SemaphoreInterface interface { Acquire() Release() Wait() }
func NewSemaphore ¶ added in v1.5.4
func NewSemaphore(concurrency int) SemaphoreInterface
Click to show internal directories.
Click to hide internal directories.