Retry an async operation with exponential backoff.
Calls fn up to maxAttempts times. If fn returns an error result, waits with exponential backoff before the next attempt. Returns the first successful result or the last error.
fn
maxAttempts
Optional
Retry an async operation with exponential backoff.
Calls
fnup tomaxAttemptstimes. Iffnreturns an error result, waits with exponential backoff before the next attempt. Returns the first successful result or the last error.