UNPKG

@reservoir0x/relay-sdk

Version:

Relay is the Fastest and Cheapest Way to Bridge and Transact Across Chains.

10 lines 650 B
/** * Repeat a function until the function returns true for a maximum set of attempts with a fixed interval * @param callback A function that returns true to exit the loop * @param maximumAttempts The maximum amount of tries for this poll * @param attemptCount The amount of attempts already done by the poll, should be left blank * @param pollingInterval The frequency of the loop * @returns When it has finished polling */ export declare function repeatUntilOk(callback: () => Promise<boolean>, maximumAttempts?: number, attemptCount?: number, pollingInterval?: number): Promise<true | undefined>; //# sourceMappingURL=repeatUntilOk.d.ts.map