Documentation
¶
Overview ¶
Package workpool 定义协程池
Package workpool 定义协程池 ¶
Package workpool
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkPool ¶
type WorkPool interface { // SubmitJob 提交任务 SubmitJob(job ...*JobBag) // GetPoolIdleSize get pool idle size GetPoolIdleSize() int // GetJobQueueIdleSize 获取job队列空闲成都 GetJobQueueIdleSize() int // ShutDownPool 关闭工作池 ShutDownPool() // IsShutDownPool 获取是否关闭 IsShutDownPool() bool // IsFinished get pool execute info, true is finished false is running IsFinished() bool // WaitFinish 等待任务完成通知 WaitFinish() }
Click to show internal directories.
Click to hide internal directories.