computeAllAsync method
Future<Map<ComputeIDs<D> , V> >
computeAllAsync({
- bool throwError = true,
- Future<
V> onError(- Object error,
- StackTrace stackTrace
- 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;