Skip to content

withRetry

withRetry<T>(fn, opts?): Promise<T>

Defined in: packages/core/src/retry/RetryHandler.ts:32

Wraps an async operation with retry logic.

T

() => Promise<T>

RetryOptions = {}

Promise<T>

const issue = await withRetry(
() => getIssue(client, { issueIdOrKey: 'PROJ-123' }),
{ maxRetries: 3 },
);