Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultCapacity = 10 DefaultTimeOut = 30 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoroutinePool ¶
type GoroutinePool struct {
// contains filtered or unexported fields
}
func NewGoroutinePool ¶
func NewGoroutinePool(opts ...PoolOption) *GoroutinePool
func (*GoroutinePool) Close ¶
func (p *GoroutinePool) Close()
type PoolOption ¶
type PoolOption func(pool *GoroutinePool)
func WithCapacity ¶
func WithCapacity(capacity int32) PoolOption
func WithTimeout ¶
func WithTimeout(timeout time.Duration) PoolOption
Click to show internal directories.
Click to hide internal directories.