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>
28 lines
No EOL
612 B
Text
28 lines
No EOL
612 B
Text
"use strict";
|
|
/**
|
|
* @license
|
|
* Copyright 2020 Google Inc.
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.TaskQueue = void 0;
|
|
/**
|
|
* @internal
|
|
*/
|
|
class TaskQueue {
|
|
#chain;
|
|
constructor() {
|
|
this.#chain = Promise.resolve();
|
|
}
|
|
postTask(task) {
|
|
const result = this.#chain.then(task);
|
|
this.#chain = result.then(() => {
|
|
return undefined;
|
|
}, () => {
|
|
return undefined;
|
|
});
|
|
return result;
|
|
}
|
|
}
|
|
exports.TaskQueue = TaskQueue;
|
|
//# sourceMappingURL=TaskQueue.js.map |