Documentation ¶
Overview ¶
Goroutine池. 用于goroutine复用,提升异步操作执行效率. 需要注意的是,grpool提供给的公共池不提供关闭方法(但可以修改公共属性),自创建的池可以手动关闭掉。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
goroutine池对象
type PoolWorker ¶
type PoolWorker struct {
// contains filtered or unexported fields
}
一个worker对应一个goroutine
Click to show internal directories.
Click to hide internal directories.