computeAllAsync method

Future<List<V>> computeAllAsync({
  1. bool throwError = true,
  2. Future<V> onError(
    1. Object error,
    2. StackTrace stackTrace
    )?,
  3. V? onErrorValue,
})

Asynchronously resolves all computations and returns their results in iteration order.

Semantics are identical to computeAll, but always returns a Future.

Implementation

Future<List<V>> computeAllAsync({
  bool throwError = true,
  Future<V> Function(Object error, StackTrace stackTrace)? onError,
  V? onErrorValue,
}) =>
    map((e) => e.resolveAsync(
        throwError: throwError,
        onError: onError,
        onErrorValue: onErrorValue)).resolveAll();