Versions in this module Expand all Collapse all v0 v0.0.2 Oct 18, 2024 v0.0.1 Oct 16, 2024 Changes in this version + type Pool interface + Go func(f func()) + func FromAlittoPool(p *pond.WorkerPool) Pool + func FromAntsPool(p *ants.Pool) Pool + func FromConcPool(p *conc.Pool) Pool + type Promise struct + func AllWithPool[T any](ctx context.Context, pool Pool, promises ...*Promise[T]) *Promise[[]T] + func All[T any](ctx context.Context, promises ...*Promise[T]) *Promise[[]T] + func CatchWithPool[T any](p *Promise[T], ctx context.Context, reject func(err error) error, pool Pool) *Promise[T] + func Catch[T any](p *Promise[T], ctx context.Context, reject func(err error) error) *Promise[T] + func NewWithPool[T any](executor func(resolve func(T), reject func(error)), pool Pool) *Promise[T] + func New[T any](executor func(resolve func(T), reject func(error))) *Promise[T] + func RaceWithPool[T any](ctx context.Context, pool Pool, promises ...*Promise[T]) *Promise[T] + func Race[T any](ctx context.Context, promises ...*Promise[T]) *Promise[T] + func ThenWithPool[A, B any](p *Promise[A], ctx context.Context, resolve func(A) (B, error), pool Pool) *Promise[B] + func Then[A, B any](p *Promise[A], ctx context.Context, resolve func(A) (B, error)) *Promise[B] + func (p *Promise[T]) Await(ctx context.Context) (*T, error)