package
0.0.0-20240806171928-4b8604f13782
Repository: https://github.com/ccbrown/api-fu.git
Documentation: pkg.go.dev
# Functions
After returns a single future that resolves after all of the given futures.
Err returns a new future that is immediately ready with the given error.
Join combines the values from multiple futures into a single future that resolves to []T.
Map converts a future's result to a different type using a conversion function.
MapOk converts a future's value to a different type using a conversion function.
MapOk converts a future's value to an `any` type.
MapOk converts a future's value to a value of a different type.
New constructs a new future from a poll function.
Ok returns a new future that is immediately ready with the given value.
Then invokes f when the future is resolved and returns a future that resolves when f's return value is resolved.