Optionalstart: StartModeRepeatedly executes an operation while it throws or rejects.
attempts is the maximum total execution count. Any normal return value is successful, and exhaustion rejects with
the final operation error unchanged. For failures eligible for another attempt, onRetry runs before the retry delay;
return false to reject with that operation error, or return true or void to continue.
Repeatedly executes an operation while it throws or rejects.
attemptsis the maximum total execution count. Any normal return value is successful, and exhaustion rejects with the final operation error unchanged. For failures eligible for another attempt,onRetryruns before the retry delay; returnfalseto reject with that operation error, or returntrueorvoidto continue.