IterableFutureResultExtension<S, F extends Object> extension
- on
-
- Iterable<
FutureResult< S, F> >
- Iterable<
Methods
-
toResult(
) → FutureResult< List< S> , List<F> > -
Available on Iterable<
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 ofFutureResult< , provided by the IterableFutureResultExtension extensionS, F> >S
andF
is determined by the order in the List. -
toResultEager(
) → FutureResult< List< S> , F> -
Available on Iterable<
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 ofFutureResult< , provided by the IterableFutureResultExtension extensionS, F> >S
andF
is determined by the order in which futures complete.