Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsIgnorableError ¶
func NewIgnorableError ¶
Types ¶
type IgnorableError ¶
type IgnorableError struct {
// contains filtered or unexported fields
}
func (*IgnorableError) Error ¶
func (i *IgnorableError) Error() string
type Int64Tuple ¶
type Int64Tuple struct {
Key, Value int64
}
type WorkerPool ¶
type WorkerPool struct {
// contains filtered or unexported fields
}
WorkerPool a pool that can control the total amount and rate of concurrency
func NewWorkerPool ¶
NewWorkerPool build a worker pool, rps 0 is unlimited
func (*WorkerPool) Done ¶
func (p *WorkerPool) Done()
func (*WorkerPool) JobNum ¶
func (p *WorkerPool) JobNum() int32
func (*WorkerPool) Start ¶
func (p *WorkerPool) Start()
func (*WorkerPool) Submit ¶
func (p *WorkerPool) Submit(job Job)
func (*WorkerPool) SubmitWithId ¶
func (p *WorkerPool) SubmitWithId(job Job) int64
func (*WorkerPool) Wait ¶
func (p *WorkerPool) Wait() error
func (*WorkerPool) WaitJobs ¶
func (p *WorkerPool) WaitJobs(jobIds []int64) error
Click to show internal directories.
Click to hide internal directories.