Versions in this module Expand all Collapse all v1 v1.18.0 Jan 8, 2025 Changes in this version + type Factory = func(context.Context) (any, error) + type Option func(*pool) + func WithAge(maxAge int64) Option + func WithEvict(cb func(any)) Option + func WithSize(maxSize int) Option + type Pool struct + func New(factory Factory, options ...Option) *Pool + func (p Pool) Get() (any, error) + func (p Pool) GetContext(ctx context.Context) (any, error) + func (p Pool) Put(item any)