mirror of
https://code.forgejo.org/actions/setup-go.git
synced 2024-12-27 23:34:56 -05:00
0caeaed6fd
* Swap to Environment Files
12 lines
364 B
TypeScript
12 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;
|
|
}
|