@nextrope/xrpl
Version:
A TypeScript/JavaScript API for interacting with the XRP Ledger in Node.js and the browser
16 lines • 406 B
TypeScript
interface ExponentialBackoffOptions {
min?: number;
max?: number;
}
export default class ExponentialBackoff {
private readonly ms;
private readonly max;
private readonly factor;
private numAttempts;
constructor(opts?: ExponentialBackoffOptions);
get attempts(): number;
duration(): number;
reset(): void;
}
export {};
//# sourceMappingURL=ExponentialBackoff.d.ts.map