Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrPoolShuttingDown is returned when trying to submit a task to a shutting down pool ErrPoolShuttingDown = fmt.Errorf("worker pool is shutting down") // ErrQueueClosed is returned when trying to submit a task to a closed queue ErrQueueClosed = fmt.Errorf("queue is closed") )
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Config)
func WithCancel ¶
func WithCancel(cancel context.CancelFunc) Option
func WithContext ¶
func WithQueueSize ¶
func WithWorkers ¶
Click to show internal directories.
Click to hide internal directories.