Versions in this module Expand all Collapse all v1 v1.0.0 Nov 4, 2022 Changes in this version + type Factory = func(context.Context) (interface{}, error) + type Option func(*pool) + func WithAge(maxAge int64) Option + func WithEvict(cb func(interface{})) Option + func WithSize(maxSize int) Option + type Pool struct + func New(factory Factory, options ...Option) *Pool + func (p Pool) Get() (interface{}, error) + func (p Pool) GetContext(ctx context.Context) (interface{}, error) + func (p Pool) Put(item interface{})