serverless-spy
Version:
CDK-based library for writing elegant integration tests on AWS serverless architecture and an additional web console to monitor events in real time.
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>;