3
0
Fork 0
mirror of https://gitea.com/actions/setup-go.git synced 2024-11-26 19:49:31 +01:00
setup-go/node_modules/@actions/tool-cache/lib/retry-helper.d.ts

13 lines
364 B
TypeScript
Raw Normal View History

/**
* 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;
}