solarwinds-apm
Version:
OpenTelemetry-based SolarWinds APM library
19 lines • 584 B
TypeScript
export interface BackoffOptions {
/** Initial backoff time */
initial: number;
/** Max backoff time */
max?: number;
/** Multiplier to apply to each subsequent timeout */
multiplier: number;
/** Number of retries before giving up */
retries?: number;
}
export declare class Backoff {
#private;
constructor(options: BackoffOptions);
/** Resets the backoff to its initial state */
reset(): void;
/** Returns the current backoff value or false if out of retries */
backoff(): number | false;
}
//# sourceMappingURL=backoff.d.ts.map