wait<R> function
Implementation
@pragma('vm:prefer-inline')
FutureOr<R> wait<R>(
Iterable<FutureOr<dynamic>> items,
_TSyncOrAsyncMapper<Iterable<dynamic>, R> callback, {
_TOnErrorCallback? onError,
bool eagerError = true,
}) {
return waitF(
items.map(
(e) =>
() => e,
),
callback,
onError: onError,
eagerError: eagerError,
);
}