4
0
Fork 0
mirror of https://github.com/actions/setup-go.git synced 2025-11-12 22:53:46 +00:00
setup-go/node_modules/@actions/tool-cache/lib/retry-helper.d.ts
2020-10-01 10:13:24 -04:00

12 lines
364 B
TypeScript

/**
* Internal class for retries
*/
export declare class RetryHelper {
private maxAttempts;
private minSeconds;
private maxSeconds;
constructor(maxAttempts: number, minSeconds: number, maxSeconds: number);
execute<T>(action: () => Promise<T>, isRetryable?: (e: Error) => boolean): Promise<T>;
private getSleepAmount;
private sleep;
}