Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WorkerDeadlocked = errors.New("Worker deadlocked")
Functions ¶
This section is empty.
Types ¶
type DeadlockHandler ¶
type DeadlockHandler func() error
type WorkerConfig ¶
type WorkerFactory ¶
type WorkerFactory func() (Worker, *WorkerConfig, error)
type WorkerPool ¶
type WorkerPool []WorkerFactory
func (WorkerPool) Run ¶
func (wp WorkerPool) Run() error
func (WorkerPool) RunWithContext ¶
func (wp WorkerPool) RunWithContext(ctx context.Context, onDeadlock DeadlockHandler, log *logrus.Entry) error
Click to show internal directories.
Click to hide internal directories.