Versions in this module Expand all Collapse all v1 v1.52.1 Sep 24, 2026 v1.52.0 Sep 18, 2026 Changes in this version + func Await[T any](ctx context.Context, p *Promise[T]) (T, error) + type Promise struct + Err error + Result T + func Go[T any](f func() (T, error)) *Promise[T] + func NewResolved[T any](result T, err error) *Promise[T] + func New[T any]() *Promise[T] + func (p *Promise[T]) Done() <-chan struct{} + func (p *Promise[T]) Resolve(result T, err error) + func (p *Promise[T]) Resolved() bool + func (p *Promise[T]) Then(f func(T, error))