Rocky_Mountain_Vending/.pnpm-store/v10/files/e6/16f530acf39cb179616be1c9991cbec531e57a5c25f81bce544a1d1a05da7486fea8b32442f5dbe4245f638e7a924ad07b9e4edba26c5a5dcc417fa3645494
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

25 lines
723 B
Text

/* IMPORT */
/* MAIN */
const retryifySync = (fn, options) => {
const { isRetriable } = options;
return function retryified(options) {
const { timeout } = options;
const timestamp = Date.now() + timeout;
return function attempt(...args) {
while (true) {
try {
return fn.apply(undefined, args);
}
catch (error) {
if (!isRetriable(error))
throw error;
if (Date.now() >= timestamp)
throw error;
continue;
}
}
}; //TSC
};
};
/* EXPORT */
export default retryifySync;