agentskit.js

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>

Explore nearby

✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page