Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrPoolClosed will be returned when submitting task to a closed pool. ErrPoolClosed = errors.New("this pool has been closed") // ErrPoolOverload will be returned when the pool is full and no workers available. ErrPoolOverload = errors.New("the number of concurrency has reached the upper limit and Block is set") // ErrPoolParamsInvalid will be returned when the pool params are invalid. ErrPoolParamsInvalid = errors.New("the pool params are invalid") )
Functions ¶
This section is empty.
Types ¶
type BasePool ¶
type BasePool struct {
// contains filtered or unexported fields
}
BasePool is base class of pool
func (*BasePool) LastTunerTs ¶
LastTunerTs returns the last time when the pool was tuned.
func (*BasePool) SetLastTuneTs ¶
SetLastTuneTs sets the last time when the pool was tuned.
Click to show internal directories.
Click to hide internal directories.