Documentation
¶
Overview ¶
Package workerpool provides a worker pool for concurrent mutation testing execution.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor interface {
// Start executes the task on worker. It stops the task when ctx is done.
Start(ctx context.Context, worker *Worker)
}
Executor is the unit of work that executes a task.
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool manages and limits the number of concurrent Worker.
func Initialize ¶
Initialize creates a new Pool with a name and the number of parallel workers it will use.
func (*Pool) ActiveWorkers ¶
ActiveWorkers gives the number of active workers on the Pool.
func (*Pool) AppendExecutor ¶
AppendExecutor adds a new Executor to the queue of Executor to be processed. It waits for a free place in the queue and returns false without adding the Executor when ctx is done first.
Click to show internal directories.
Click to hide internal directories.