Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyRunning = errors.New("worker pool is already running")
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*WorkerPool)
func WithExecutionTimeout ¶
func WithTickInterval ¶
func WithWorkerCount ¶
type WorkerPool ¶
type WorkerPool struct {
// contains filtered or unexported fields
}
func New ¶
func New(executor Executor, opts ...Option) *WorkerPool
func (*WorkerPool) Name ¶
func (pool *WorkerPool) Name() string
func (*WorkerPool) Stop ¶
func (pool *WorkerPool) Stop() error
Click to show internal directories.
Click to hide internal directories.