Skip to content

withRetryWrapper

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/packages/doc-automation/src/v2/providers/retry.ts

Create a retryable version of an async function

Signature

ts
function withRetryWrapper(fn: (...args: TArgs) => Promise<TResult>, config: RetryConfig): (...args: TArgs) => Promise<TResult>

Parameters

NameType
fn(...args: TArgs) => Promise<TResult>
configRetryConfig

Returns: (...args: TArgs) => Promise<TResult>

Was this page helpful?

Download as PDF