ghaction-upx/node_modules/@actions/tool-cache/lib/retry-helper.d.ts

13 lines
364 B
TypeScript
Raw Normal View History

2020-03-09 08:24:46 -06:00
/**
* Internal class for retries
*/
export declare class RetryHelper {
private maxAttempts;
private minSeconds;
private maxSeconds;
constructor(maxAttempts: number, minSeconds: number, maxSeconds: number);
2020-03-10 14:09:37 -06:00
execute<T>(action: () => Promise<T>, isRetryable?: (e: Error) => boolean): Promise<T>;
2020-03-09 08:24:46 -06:00
private getSleepAmount;
private sleep;
}