You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportinterfaceRetryOptions<Result=unknown>{/** Total number of executions, including the first one. Defaults to 3. */attempts?: number;/** Delay strategy between attempts. Defaults to exponential backoff. */backoff?: RetryBackoff;/** Cap for an exponential or custom backoff, in milliseconds. */maxDelay?: number;/** Randomise delays to avoid retry storms. Defaults to false. */jitter?: boolean;/** Return true when the error or result should be retried. */shouldRetry?: (context: RetryContext<Result>)=>boolean|Promise<boolean>;/** Runs before the delay preceding a new attempt. */onRetry?: (context: RetryContext<Result>)=>void|Promise<void>;}exporttypeRetryBackoff=|number|'fixed'|'exponential'|((context: RetryContext)=>number);exportinterfaceRetryContext<Result=unknown>{attempt: number;error?: unknown;result?: Result;delay: number;}
Cancellation should be supplied per call through an AbortSignal, so one caller can cancel without changing a shared retry policy.
Activity
tabkram commentedon Aug 12, 2026
Proposed TypeScript configuration
Cancellation should be supplied per call through an
AbortSignal, so one caller can cancel without changing a shared retry policy.