callWithLoadingAndRetry<T> function
Future<T>
callWithLoadingAndRetry<
T>( - Future<T> fn(), {
- void onError(
- dynamic error
)?,
- int? timeoutBeforeLoadingMill,
- int? maxAttempts,
})
Implementation
Future<T> callWithLoadingAndRetry<T>(
Future<T> Function() fn, {
void Function(dynamic error)? onError,
int? timeoutBeforeLoadingMill,
int? maxAttempts,
}) async {
return await callWithLoadingAfterTimeout(
() => retryIt(fn, maxAttempts: maxAttempts),
onError: onError,
timeoutBeforeLoadingMill: timeoutBeforeLoadingMill,
);
}