Initial commit
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
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>;
|
||||
Reference in New Issue
Block a user