This commit is contained in:
David de Regt 2016-11-02 15:57:33 -07:00
Родитель 7aadf897dc
Коммит 290bcc665b
3 изменённых файлов: 10 добавлений и 13 удалений

2
.gitignore поставляемый
Просмотреть файл

@ -1,6 +1,4 @@
/node_modules
/dist
/src/.vs
/src/bin
/src/obj
*.user

Просмотреть файл

@ -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();