Versions in this module Expand all Collapse all v2 v2.7.3 Dec 10, 2024 Changes in this version + func Add(ctx context.Context, f Func) error + func AddWithRecover(ctx context.Context, userFunc Func, recoverFunc RecoverFunc) error + func Jobs() int + func Size() int + type Func func(ctx context.Context) + type Pool struct + func New(limit ...int) *Pool + func (p *Pool) Add(ctx context.Context, f Func) error + func (p *Pool) AddWithRecover(ctx context.Context, userFunc Func, recoverFunc RecoverFunc) error + func (p *Pool) Cap() int + func (p *Pool) Close() + func (p *Pool) IsClosed() bool + func (p *Pool) Jobs() int + func (p *Pool) Size() int + type RecoverFunc func(ctx context.Context, exception error)