general_lib_execute method
FutureOr<T>
general_lib_execute({
- Duration? timeLimit,
- FutureOr<
T> onTimeout()?, - required FutureOr<
T> onNullData(), - ExecuteOnErrorDart<
T> ? onError, - bool isThrowOnError = true,
Implementation
FutureOr<T> general_lib_execute({
Duration? timeLimit,
FutureOr<T> Function()? onTimeout,
required FutureOr<T> Function() onNullData,
ExecuteOnErrorDart<T>? onError,
bool isThrowOnError = true,
}) async {
return (await general_lib_execute_or_null(
timeLimit: timeLimit,
onTimeout: onTimeout,
onError: onError,
isThrowOnError: isThrowOnError,
)) ??
await onNullData();
}