computeAllAsync method

Future<Map<ComputeIDs<D>, 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 a map with the same keys.

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

Implementation

Future<Map<ComputeIDs<D>, V>> computeAllAsync({
  bool throwError = true,
  Future<V> Function(Object error, StackTrace stackTrace)? onError,
  V? onErrorValue,
}) => Map<ComputeIDs<D>, Future<V>>.fromEntries(
  entries.map(
    (e) => MapEntry(
      e.key,
      e.value.resolveAsync(
        throwError: throwError,
        onError: onError,
        onErrorValue: onErrorValue,
      ),
    ),
  ),
).resolveAllValues().asFuture;