computeAll method
FutureOr<List<V> >
computeAll({
- bool throwError = true,
- FutureOr<
V> onError(- Object error,
- StackTrace stackTrace
- V? onErrorValue,
Resolves all computations and returns their results in iteration order.
If throwError is true, the first error is propagated.
Otherwise, onError or onErrorValue is used to produce a fallback value.
The result may be returned synchronously or asynchronously.
Implementation
FutureOr<List<V>> computeAll({
bool throwError = true,
FutureOr<V> Function(Object error, StackTrace stackTrace)? onError,
V? onErrorValue,
}) =>
map((e) => e.resolve(
throwError: throwError,
onError: onError,
onErrorValue: onErrorValue)).resolveAll();