fetchWithRetry
Auto-generated API reference for fetchWithRetry.
Function: fetchWithRetry()
fetchWithRetry(
doFetch,signal,retryOpt?):Promise<Response>
Defined in: utils.ts:404
Run a fetch with retries on transient failures. Returns the final Response (whether successful or not — caller decides), or throws if the AbortSignal fires or all attempts fail with a thrown error.
#Parameters
#doFetch
(signal) => Promise<Response>
#signal
AbortSignal
#retryOpt?
RetryOptions = \{\}
#Returns
Promise<Response>