Execute operation with retry logic
Async operation to execute
Optional
Retry options
Abort signal
Override the TOTAL attempt budget
Resource name for logging
Operation result
If every attempt fails
// 5 attempts = 1 initial try + 4 retries.const result = await RetryHandler.retry( async () => await fetch(url), { maxAttempts: 5, resourceName: 'icon.svg' }); Copy
// 5 attempts = 1 initial try + 4 retries.const result = await RetryHandler.retry( async () => await fetch(url), { maxAttempts: 5, resourceName: 'icon.svg' });
Execute operation with retry logic