@juzi/wechaty
Version:
Wechaty is a RPA SDK for Chatbot Makers.
11 lines • 493 B
TypeScript
import { RetryPolicy } from 'cockatiel';
/**
* Create a retry policy that'll try whatever function we execute 3
* times with a randomized exponential backoff.
*
* https://github.com/connor4312/cockatiel#policyretry
*/
declare const retryPolicy: RetryPolicy;
declare const checkUntilChanged: (gapMilliseconds: number, maxRetry: number, judgement: () => Promise<boolean> | boolean) => Promise<boolean>;
export { retryPolicy, checkUntilChanged, };
//# sourceMappingURL=retry-policy.d.ts.map