package
Version:
v1.1.8
Opens a new window with list of versions in this module.
Published: Jun 9, 2019
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
通用协程池任务执行器实现
协程池,用以使用固定数量的 goroutine 顺序处理大量事件的场景
goroutine pool
func (this *Pool) AddExecutor()
手动创建pool执行器
add goroutine manual
count may great then capa when user AddExecutor
check alive
检查pool是否是激活状态
func (this *Pool) WaitAllQuit()
return after all goroutine quit in pool
等待所有的goroutine退出
type Runner interface {
Run() (interface{}, error)
Quit(*Pool, interface{}, error)
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.