planning-center-monorepo v1.0.0
planning-center-monorepo / planning-center-base-ts/src / retryWithBackoff
Function: retryWithBackoff()
retryWithBackoff<
T>(fn,options):Promise<T>
Defined in: packages/planning-center-base-ts/src/errors/error-handling.ts:269
Type Parameters
T
T
Parameters
fn
() => Promise<T>
options
maxRetries?
number
baseDelay?
number
maxDelay?
number
context?
Partial<ErrorContext>
onRetry?
(error, attempt) => void
Returns
Promise<T>