combineResultAsyncListWIthAllErrors<T, E> function

ResultAsync<List<T>, List<E>> combineResultAsyncListWIthAllErrors<T, E>(
  1. Iterable<ResultAsync<T, E>> asyncResultList
)

Implementation

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