Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + var NoMoreWorkerErr = errors.New("no more worker, pool is full") + var TimeoutErr = errors.New("time out") + type GoroutinePool struct + func New(cap int) *GoroutinePool + func (p *GoroutinePool) Go(f func()) error + func (p *GoroutinePool) GoWithTimeout(f func(), timeout time.Duration) error + func (p *GoroutinePool) IsRunning() bool + func (p *GoroutinePool) MustGo(f func()) + func (p *GoroutinePool) Start() + func (p *GoroutinePool) Statistics() [2]int + func (p *GoroutinePool) Stop()