Dwi Siswanto adc0faf08f
refactor: use @actions/tool-cache instead of @actions/cache
Signed-off-by: Dwi Siswanto <git@dw1.io>
2025-01-12 09:28:37 +07: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;
}