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