Versions in this module Expand all Collapse all v0 v0.3.5 Feb 20, 2020 Changes in this version + var ErrPoolClosed = errors.New("container/pool closed") + var ErrPoolExhausted = errors.New("container/pool exhausted") + type Config struct + Active int + Idle int + IdleTimeout xtime.Duration + Wait bool + WaitTimeout xtime.Duration + type List struct + New func(ctx context.Context) (io.Closer, error) + func NewList(c *Config) *List + func (p *List) Close() error + func (p *List) Get(ctx context.Context) (io.Closer, error) + func (p *List) Put(ctx context.Context, c io.Closer, forceClose bool) error + func (p *List) Reload(c *Config) error + type Pool interface + Close func() error + Get func(ctx context.Context) (io.Closer, error) + Put func(ctx context.Context, c io.Closer, forceClose bool) error + type Slice struct + New func(ctx context.Context) (io.Closer, error) + func NewSlice(c *Config) *Slice + func (p *Slice) Close() error + func (p *Slice) Get(ctx context.Context) (io.Closer, error) + func (p *Slice) Put(ctx context.Context, c io.Closer, forceClose bool) error + func (p *Slice) Reload(c *Config) error