combineResultAsyncListWIthAllErrors<T, E> function
ResultAsync<List<T> , List<E> >
combineResultAsyncListWIthAllErrors<T, E>(
- Iterable<
ResultAsync< asyncResultListT, E> >
Implementation
ResultAsync<List<T>, List<E>> combineResultAsyncListWIthAllErrors<T, E>(
Iterable<ResultAsync<T, E>> asyncResultList) =>
ResultAsync.fromSafeFuture(Future.wait(asyncResultList))
.andThen((list) => ResultAsync(combineResultListWithAllErrors(list)));