Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct {
Tasks []*Task
// contains filtered or unexported fields
}
Pool is a worker group that runs a number of tasks at a configured concurrency.
type Task ¶
type Task struct {
// Err holds an error that occurred during a task. Its
// result is only meaningful after Run has been called
// for the pool that holds it.
Err error
// contains filtered or unexported fields
}
Task encapsulates a work item that should go in a work pool.
Click to show internal directories.
Click to hide internal directories.