mirror of
https://github.com/crazy-max/ghaction-upx.git
synced 2024-11-25 11:46:09 -07:00
13 lines
364 B
TypeScript
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;
|
|
}
|