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>
35 lines
1.2 KiB
Text
35 lines
1.2 KiB
Text
import type { AbortController as DeprecatedAbortController } from "./abort";
|
|
/**
|
|
* @public
|
|
*/
|
|
export interface WaiterConfiguration<Client> {
|
|
/**
|
|
* Required service client
|
|
*/
|
|
client: Client;
|
|
/**
|
|
* The amount of time in seconds a user is willing to wait for a waiter to complete.
|
|
*/
|
|
maxWaitTime: number;
|
|
/**
|
|
* @deprecated Use abortSignal
|
|
* Abort controller. Used for ending the waiter early.
|
|
*/
|
|
abortController?: AbortController | DeprecatedAbortController;
|
|
/**
|
|
* Abort Signal. Used for ending the waiter early.
|
|
*/
|
|
abortSignal?: AbortController["signal"] | DeprecatedAbortController["signal"];
|
|
/**
|
|
* The minimum amount of time to delay between retries in seconds. This is the
|
|
* floor of the exponential backoff. This value defaults to service default
|
|
* if not specified. This value MUST be less than or equal to maxDelay and greater than 0.
|
|
*/
|
|
minDelay?: number;
|
|
/**
|
|
* The maximum amount of time to delay between retries in seconds. This is the
|
|
* ceiling of the exponential backoff. This value defaults to service default
|
|
* if not specified. If specified, this value MUST be greater than or equal to 1.
|
|
*/
|
|
maxDelay?: number;
|
|
}
|