Skip to content

withRetry

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/packages/api-client/src/utils/retry.ts

Retry a function with exponential backoff

Signature

ts
async function withRetry(fn: () => Promise<T>, options: RetryOptions): Promise<T>

Parameters

NameType
fn() => Promise<T>
optionsRetryOptions

Returns: Promise<T>

Was this page helpful?

Download as PDF