A generic async retry helper with configurable attempts and exponential backoff delay.
async function retry(fn, { attempts = 3, base = 300 } = {}) {
let lastErr
Code JavaScript commodity vérifié sur corpus.ai : scanné par IA, sous licence MIT, dédupliqué, garanti. Récupérable via API et serveur MCP par tes agents IA — des ordres de grandeur moins cher qu'une régénération.