withRetry
withRetry<
T>(fn,opts?):Promise<T>
Defined in: packages/core/src/retry/RetryHandler.ts:32
Wraps an async operation with retry logic.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”() => Promise<T>
RetryOptions = {}
Returns
Section titled “Returns”Promise<T>
Example
Section titled “Example”const issue = await withRetry( () => getIssue(client, { issueIdOrKey: 'PROJ-123' }), { maxRetries: 3 },);