436a9631fc
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
10 lines
329 B
TypeScript
10 lines
329 B
TypeScript
import { CancellationToken } from "./CancellationToken";
|
|
export declare function retry<T>(task: () => Promise<T>, options: {
|
|
retries: number;
|
|
interval: number;
|
|
backoff?: number;
|
|
attempt?: number;
|
|
cancellationToken?: CancellationToken;
|
|
shouldRetry?: (e: any) => boolean | Promise<boolean>;
|
|
}): Promise<T>;
|