execute method

Future<void> execute(
  1. Future<T> future()
)

Executes a future and updates state automatically with retry support Does not rethrow exceptions - errors are only stored in state

Implementation

Future<void> execute(Future<T> Function() future) async {
  _currentAttempt = 0;
  await _executeWithRetry(future, shouldRethrow: false);
}