setup-go/node_modules/@actions/tool-cache/lib/retry-helper.d.ts
Thomas Boop 0caeaed6fd
Swap to Environment Files V1 Release (#77)
* Swap to Environment Files
2020-10-01 10:45:33 -04:00

13 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;
}