/* eslint-disable */ export async function retry any>( fn: T, args: Parameters, maxTry: number, retryCount = 1, ): Promise>> { const currRetry = typeof retryCount === 'number' ? retryCount : 1 try { const result = await fn(...args) return result } catch (e) { if (currRetry > maxTry) { throw e } return retry(fn, args, maxTry, currRetry + 1) } }