Versions in this module Expand all Collapse all v1 v1.0.0 Jul 18, 2026 Changes in this version + type Future struct + func (f Future[T]) Done() <-chan struct{} + func (f Future[T]) Get(ctx context.Context) (T, error) + func (f Future[T]) IsShared() bool + type Promise struct + func NewPromise[T any]() *Promise[T] + func (p *Promise[T]) Complete(value T, err error) + func (p *Promise[T]) Future() Future[T] + func (p *Promise[T]) Reject(err error) + func (p *Promise[T]) Resolve(value T) + type SingleFlight struct + func (s *SingleFlight[K, V]) Do(key K, task func() (V, error)) Future[V] + func (s *SingleFlight[K, V]) Forget(key K)