UNPKG

@phenixrts/sdk

Version:
8 lines (7 loc) 425 B
export default class ExponentialBackoff { private readonly _backoffIntervalInMillisecond; private readonly _minBackoffIntervalInMillisecond; private readonly _maxBackoffIntervalInMillisecond; constructor(backoffIntervalInMillisecond?: number, minBackoffIntervalInMillisecond?: number, maxBackoffIntervalInMillisecond?: number); getExponentialBackoffIntervalByFailureCount(failureCount: number): number; }