Documentation
¶
Index ¶
Constants ¶
View Source
const (
InfiniteFailures = -1
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
func (*Pool) SubmitTask ¶
func (*Pool) SubmitTaskAndWait ¶
func (p *Pool) SubmitTaskAndWait(task *Task) TaskErrors
type Task ¶
type Task struct { NumReptitions int MaxParallel int Handler func(interface{}, int) error OnCompleteChan chan struct{} Timeout time.Duration ErrorsChan chan *TaskError MaxNumErrors int Cookie interface{} // contains filtered or unexported fields }
func (*Task) Wait ¶
func (t *Task) Wait() TaskErrors
type TaskErrors ¶
type TaskErrors struct {
// contains filtered or unexported fields
}
func (*TaskErrors) Error ¶
func (te *TaskErrors) Error() error
func (*TaskErrors) String ¶
func (te *TaskErrors) String() string
type TaskGroup ¶
type TaskGroup struct {
// contains filtered or unexported fields
}
func NewTaskGroup ¶
func (*TaskGroup) Wait ¶
func (t *TaskGroup) Wait() TaskGroupErrors
type TaskGroupErrors ¶
type TaskGroupErrors struct {
// contains filtered or unexported fields
}
func (*TaskGroupErrors) Error ¶
func (tge *TaskGroupErrors) Error() error
func (*TaskGroupErrors) Errors ¶
func (tge *TaskGroupErrors) Errors() []error
Click to show internal directories.
Click to hide internal directories.