@atomist/automation-client
Version:
Atomist API for software low-level client
15 lines • 507 B
TypeScript
import { WrapOptions } from "retry";
/**
* Default retry options for doWithRetry.
*/
export declare const DefaultRetryOptions: WrapOptions;
/**
* Generic typed retry support
* Perform the task, retrying according to the retry options
* @param {() => Promise<R>} what
* @param {string} description
* @param {Object} opts
* @return {Promise<R>}
*/
export declare function doWithRetry<R>(what: () => Promise<R>, description: string, opts?: WrapOptions): Promise<R>;
//# sourceMappingURL=retry.d.ts.map