Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // return if pool size <= 0 ErrInvalidPoolCap = errors.New("invalid pool cap") // put task but pool already closed ErrPoolAlreadyClosed = errors.New("pool already closed") // only the error type can be captured and processed ErrUnkownType = errors.New("recover only allows error type, but an unknown type is received") // thrown when `Handle` is not a function type ErrNotFunc = errors.New("`Handle` only accepts function types") )
errors
Functions ¶
This section is empty.
Types ¶
type Pool ¶
Pool task pool
func (*Pool) BlockPanic ¶
BlockPanic decides whether to panic when a goroutine throws an exception
func (*Pool) GetRunningWorkers ¶
GetRunningWorkers get running workers
Click to show internal directories.
Click to hide internal directories.