mirror of
https://github.com/crazy-max/ghaction-upx.git
synced 2024-10-22 13:46:09 -06:00
13 lines
327 B
TypeScript
13 lines
327 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>): Promise<T>;
|
|
private getSleepAmount;
|
|
private sleep;
|
|
}
|