call method

Future<T> call(
  1. Future<T> future()
)

Executes a future and updates state automatically with retry support Rethrows exceptions - use execute for non-throwing version

Implementation

Future<T> call(Future<T> Function() future) async {
  _currentAttempt = 0;
  return _executeWithRetry(future, shouldRethrow: true);
}