RetryOptions
Defined in: packages/core/src/retry.ts:3
Properties
Section titled “Properties”baseDelayMs?
Section titled “baseDelayMs?”
optionalbaseDelayMs?:number
Defined in: packages/core/src/retry.ts:7
Initial delay before the second attempt, in ms. Defaults to 200.
isRetryable?
Section titled “isRetryable?”
optionalisRetryable?: (err) =>boolean
Defined in: packages/core/src/retry.ts:13
Override the default predicate. Default treats retryable LoncaErrors as retryable.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”boolean
jitter?
Section titled “jitter?”
optionaljitter?:boolean
Defined in: packages/core/src/retry.ts:11
Add up to 50% random jitter on each delay. Defaults to true.
maxAttempts?
Section titled “maxAttempts?”
optionalmaxAttempts?:number
Defined in: packages/core/src/retry.ts:5
Total number of attempts including the initial call. Defaults to 3.
maxDelayMs?
Section titled “maxDelayMs?”
optionalmaxDelayMs?:number
Defined in: packages/core/src/retry.ts:9
Upper bound on delay between any two attempts, in ms. Defaults to 10_000.
onRetry?
Section titled “onRetry?”
optionalonRetry?: (err,attempt,nextDelayMs) =>void
Defined in: packages/core/src/retry.ts:15
Called before each retry sleep. Useful for structured logging.
Parameters
Section titled “Parameters”unknown
attempt
Section titled “attempt”number
nextDelayMs
Section titled “nextDelayMs”number
Returns
Section titled “Returns”void
signal?
Section titled “signal?”
optionalsignal?:AbortSignal
Defined in: packages/core/src/retry.ts:17
Abort all pending sleeps and bubble the signal’s reason.
Unofficial. Lonca is an independent, community-maintained project — not affiliated with, endorsed by, or supported by Trendyol, Hepsiburada, or any other marketplace. All marketplace names and trademarks belong to their respective owners.