Misc cleanup
This commit is contained in:
Родитель
7aadf897dc
Коммит
290bcc665b
|
@ -1,6 +1,4 @@
|
|||
/node_modules
|
||||
/dist
|
||||
/src/.vs
|
||||
/src/bin
|
||||
/src/obj
|
||||
*.user
|
||||
|
|
3
index.js
3
index.js
|
@ -5,5 +5,4 @@
|
|||
* Points at typescript source for using with webpack/TSC.
|
||||
*/
|
||||
|
||||
var resub = require('./dist/SimpleRestClients');
|
||||
module.exports = resub;
|
||||
module.exports = require('./dist/SimpleRestClients');
|
||||
|
|
|
@ -15,12 +15,12 @@ export class ExponentialTime {
|
|||
private _currentTime: number;
|
||||
private _incrementCount: number;
|
||||
|
||||
/**
|
||||
* @param initialTime multiplier of exponent
|
||||
* @param maxTime delays won't be greater than this
|
||||
* @param growFactor base of exponent
|
||||
* @param jitterFactor
|
||||
*/
|
||||
/**
|
||||
* @param initialTime multiplier of exponent
|
||||
* @param maxTime delays won't be greater than this
|
||||
* @param growFactor base of exponent
|
||||
* @param jitterFactor
|
||||
*/
|
||||
constructor(private _initialTime: number,
|
||||
private _maxTime: number,
|
||||
private _growFactor = DEFAULT_TIME_GROW_FACTOR,
|
||||
|
@ -74,9 +74,9 @@ export class ExponentialTime {
|
|||
return this._currentTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return first call returns initialTime, next calls will return initialTime*growFactor^n + jitter
|
||||
*/
|
||||
/**
|
||||
* @return first call returns initialTime, next calls will return initialTime*growFactor^n + jitter
|
||||
*/
|
||||
getTimeAndCalculateNext(): number {
|
||||
const res = this.getTime();
|
||||
this.calculateNext();
|
||||
|
|
Загрузка…
Ссылка в новой задаче