Documentation
¶
Overview ¶
Create by Yale 2018/1/8 14:47
Index ¶
Constants ¶
View Source
const MaxTime = time.Hour * 24 * 365 * 100
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
func NewPool ¶
WorkerNum is worker number of worker pool,on worker have one goroutine
JobNum is job number of job pool
func (*Pool) EnableWaitForAll ¶
Enable whether WaitForAll
func (*Pool) SetIdleDuration ¶
After idleTime stop a worker circulate, default 100 year
func (*Pool) WorkerLength ¶
Click to show internal directories.
Click to hide internal directories.