Versions in this module Expand all Collapse all v1 v1.19.8 Feb 20, 2024 v1.19.7 Feb 20, 2024 Changes in this version + type Batch struct + func New(ctx context.Context, opts ...Option) (*Batch, context.Context) + func (b *Batch) Go(key string, fn func() (any, error)) + func (b *Batch) Result() map[string]Result + func (b *Batch) Wait() *Error + func (b *Batch) WaitAndGetResult() (map[string]Result, *Error) + type Error struct + Err error + Key string + type Option = func(b *Batch) + func WithConcurrencyNum(n int) Option + type Result struct + Err error + Value any