Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHandler ¶
func AddHandler[T queue.JobData](workerPool *WorkerPool, handler JobHandler[T])
Types ¶
type WorkerPool ¶
type WorkerPool struct {
// contains filtered or unexported fields
}
func NewPool ¶
func NewPool(inputQueue queue.Queue, options *Options) (worker *WorkerPool, err error)
func (*WorkerPool) Start ¶
func (workerPool *WorkerPool) Start(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.