Rocky_Mountain_Vending/.pnpm-store/v10/files/2d/852387c1452d0defca8e4d1a767356b060f703355bd5d707f1642b39b1fce127f7d54efe1ddd660e5f3638c4166adf7f9012c71bdb70030a1dd86fb9830a1f
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

35 lines
No EOL
1 KiB
Text

/**
* @license
* Copyright 2024 Google Inc.
* SPDX-License-Identifier: Apache-2.0
*/
import { TimeoutError } from '../common/Errors.js';
/**
* @internal
*/
export interface DeferredOptions {
message: string;
timeout: number;
}
/**
* Creates and returns a deferred object along with the resolve/reject functions.
*
* If the deferred has not been resolved/rejected within the `timeout` period,
* the deferred gets resolves with a timeout error. `timeout` has to be greater than 0 or
* it is ignored.
*
* @internal
*/
export declare class Deferred<T, V extends Error = Error> {
#private;
static create<R, X extends Error = Error>(opts?: DeferredOptions): Deferred<R, X>;
static race<R>(awaitables: Array<Promise<R> | Deferred<R>>): Promise<R>;
constructor(opts?: DeferredOptions);
resolve(value: T): void;
reject(error: V | TimeoutError): void;
resolved(): boolean;
finished(): boolean;
value(): T | V | TimeoutError | undefined;
valueOrThrow(): Promise<T>;
}
//# sourceMappingURL=Deferred.d.ts.map