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>
29 lines
No EOL
733 B
Text
29 lines
No EOL
733 B
Text
"use strict";
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
Object.defineProperty(exports, "AsyncCallbackSet", {
|
|
enumerable: true,
|
|
get: function() {
|
|
return AsyncCallbackSet;
|
|
}
|
|
});
|
|
class AsyncCallbackSet {
|
|
add(callback) {
|
|
this.callbacks.push(callback);
|
|
}
|
|
async runAll() {
|
|
if (!this.callbacks.length) {
|
|
return;
|
|
}
|
|
const callbacks = this.callbacks;
|
|
this.callbacks = [];
|
|
await Promise.allSettled(callbacks.map(// NOTE: wrapped in an async function to protect against synchronous exceptions
|
|
async (f)=>f()));
|
|
}
|
|
constructor(){
|
|
this.callbacks = [];
|
|
}
|
|
}
|
|
|
|
//# sourceMappingURL=async-callback-set.js.map |