Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorInvalidObject = errors.New("InvalidObject")
Functions ¶
This section is empty.
Types ¶
type SingleTaskWorker ¶
type SingleTaskWorker struct {
// contains filtered or unexported fields
}
func NewSingleTaskWorker ¶
func NewSingleTaskWorker(ctx context.Context, maxConcurrency uint8, work SingleWork, total int) *SingleTaskWorker
func (*SingleTaskWorker) Do ¶
func (t *SingleTaskWorker) Do(input interface{})
func (*SingleTaskWorker) Results ¶
func (t *SingleTaskWorker) Results() []Result
type SingleWork ¶
type TaskWorker ¶
type TaskWorker struct {
// contains filtered or unexported fields
}
func NewTaskWorker ¶
func NewTaskWorker(maxConcurrency uint8) *TaskWorker
func (*TaskWorker) Register ¶
func (t *TaskWorker) Register(work Work)
Click to show internal directories.
Click to hide internal directories.