Rocky_Mountain_Vending/.pnpm-store/v10/files/0d/46208010b8a7fa3865dbeecacb88ea38b30ca308f353ff1440388550c2597c16201567ebf0896219cd74bf14f55370e52386c233af1696a851974aac3ed215
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

29 lines
478 B
Text

/**
* @license
* Copyright 2020 Google Inc.
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @internal
*/
export class TaskQueue {
#chain: Promise<void>;
constructor() {
this.#chain = Promise.resolve();
}
postTask<T>(task: () => Promise<T>): Promise<T> {
const result = this.#chain.then(task);
this.#chain = result.then(
() => {
return undefined;
},
() => {
return undefined;
},
);
return result;
}
}