Documentation ¶
Overview ¶
2017-10-24 16:20 Package gxruntime encapsulates some runtime functions goroutine pool ref: https://github.com/pingcap/tidb/blob/1592c7bc2873346565ab15ecfbc22749a775e014/util/goroutine_pool/gp.go
Index ¶
Constants ¶
View Source
const ( PoolInit = iota PoolStarting PoolGcing PoolClosing PoolClosed )
View Source
const (
OnceLoopGoroutineNum = 30
)
Variables ¶
View Source
var (
ErrGoroutinePoolClosed = fmt.Errorf("GoroutinePool has been closed.")
)
Functions ¶
Types ¶
type Pool ¶ added in v0.2.0
Pool is a struct to represent goroutine pool.
func NewGoroutinePool ¶ added in v0.2.0
New returns a new *Pool object.
Click to show internal directories.
Click to hide internal directories.