combineResultAsyncList<T, E> function

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

Implementation

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