package
2.16.0
Repository: https://github.com/tawesoft/golib.git
Documentation: pkg.go.dev

# Functions

CollectAll returns a promise to compute the slice of the values of the input futures, stopping at the first error.
CollectAllCtx is like [CollectAll] but uses the given context while computing the promises.
ForEach applies function f(x) to every future that is both computed and whose promise did not return an error i.e.
NewAsync creates a new future from a promise, and begins computing that promise asynchronously in a new goroutine.
NewAsyncs is like [NewAsync], but accepts a slice of promises and returns a slice of futures.
NewSync creates a new future to be run synchronously based on a given promise to compute a value.
NewSyncs is like [NewSync], but accepts a slice of promises and returns a slice of futures.

# Variables

NotReady is the error returned by the Peek methods on a future when the computed value or error is not yet available.

# Interfaces

F represents a "future", a placeholder handle backed by a promise to compute a value at some later point.