lambda-live-debugger
Version:
Debug Lambda functions locally like it is running in the cloud
12 lines (11 loc) • 510 B
TypeScript
import { WaiterOptions, WaiterResult } from "./waiter";
/**
* Create a waiter promise that only resolves when:
* 1. Abort controller is signaled
* 2. Max wait time is reached
* 3. `acceptorChecks` succeeds, or fails
* Otherwise, it invokes `acceptorChecks` with exponential-backoff delay.
*
* @internal
*/
export declare const createWaiter: <Client, Input>(options: WaiterOptions<Client>, input: Input, acceptorChecks: (client: Client, input: Input) => Promise<WaiterResult>) => Promise<WaiterResult>;