function
const RETRY_INTERVAL = 2000 export const retry = (func, args, max = 3, count = 0) => { if (count >= max) return "max try exeeded" try { return func(...args) } catch (e) { setTimeout(() => { file.set(`${func.name} ${++count}`, e.message) return retry(func, args, max, count) }, RETRY_INTERVAL) } }

Seonglae Cho