@phenixrts/sdk
Version:
JavaScript SDK
8 lines (7 loc) • 425 B
TypeScript
export default class ExponentialBackoff {
private readonly _backoffIntervalInMillisecond;
private readonly _minBackoffIntervalInMillisecond;
private readonly _maxBackoffIntervalInMillisecond;
constructor(backoffIntervalInMillisecond?: number, minBackoffIntervalInMillisecond?: number, maxBackoffIntervalInMillisecond?: number);
getExponentialBackoffIntervalByFailureCount(failureCount: number): number;
}