Documentation ¶
Index ¶
Constants ¶
View Source
const ( RUNNING = 1 PAUSED = 2 STOPPED = 3 )
Variables ¶
View Source
var ( // ErrInvalidPoolCap return if pool size <= 0 ErrInvalidPoolCap = errors.New("invalid pool cap") // ErrPoolAlreadyClosed put task but pool already closed ErrPoolAlreadyClosed = errors.New("pool already closed") )
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct { PanicHandler func(interface{}) // contains filtered or unexported fields }
Pool task pool
func (*Pool) GetRunningWorkers ¶
GetRunningWorkers get running workers
Click to show internal directories.
Click to hide internal directories.