IterableFutureResultExtension<S, F extends Object> extension

on

Methods

toResult() FutureResult<List<S>, List<F>>
Transforms an Iterable of FutureResults into a single result where the ok value is the list of all successes and err value is a list of all failures. The order of S and F is determined by the order in the List.
toResultEager() FutureResult<List<S>, F>
Transforms an Iterable of FutureResults into a single result where the ok value is the list of all successes. If any error is encountered, the first error is used as the error result. The order of S and F is determined by the order in which futures complete.