Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pool ¶
type Pool struct {
//母版函数
Function func(interface{}) interface{}
//Pool输入队列
In chan interface{}
//Pool输出队列s
Out chan interface{}
//启动协程等待时间
Interval time.Duration
//正在执行的任务清单
JobsList *smap.SMap
//jobs表示执行任务的通道用于作为队列,我们将任务从切片当中取出来,然后存放到通道当中,再从通道当中取出任务并执行。
Jobs chan *Worker
//提前结束标识符
Done bool
// contains filtered or unexported fields
}
池
Click to show internal directories.
Click to hide internal directories.