Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SPool ¶
type SPool struct { TotalNum int CounterOk int CounterFail int CounterOut int TimeStart int64 TimeOut int Debug bool // contains filtered or unexported fields }
/共享协程池
type SPoolFunc ¶ added in v1.0.5
type SPoolFunc struct { TotalNum int CounterOk int CounterFail int CounterOut int TimeStart int64 TimeOut int Debug bool // contains filtered or unexported fields }
/共享协程池
func NewSPoolFunc ¶ added in v1.0.5
协程池 timeout=0 关闭超时统计 debug=true 打开模式
type WorkerInterface ¶
type WorkerInterface interface { Task() error GetTaskID() interface{} }
Click to show internal directories.
Click to hide internal directories.