Versions in this module Expand all Collapse all v0 v0.0.14 Mar 21, 2025 v0.0.13 Feb 5, 2025 Changes in this version + type Future struct + func Gather[T any](promises ...Future[T]) Future[[]Future[T]] + func Run[T any](f func() T) Future[T] + func Wait[T any](promises ...Future[T]) Future[<-chan Future[T]] + func (future Future[T]) Channel() <-chan T + func (future Future[T]) ErrorChannel() <-chan error + func (future Future[T]) MustValue() monad.Result[T] + func (future Future[T]) Status() Status + func (future Future[T]) String() string + func (future Future[T]) Value() T + func (future Future[T]) Wait() + type FutureNotFinishedError struct + func NewFutureNotFinishedError() FutureNotFinishedError + type FutureNotStartedError struct + func NewFutureNotStartedError() FutureNotStartedError + type Status int + const StatusError + const StatusFinished + const StatusNotStarted + const StatusWorking + func (status Status) String() string