+ private runIntervals () {
+ Object.keys(this.intervals).forEach(requestSchedulerName => {
+ this.intervals[requestSchedulerName] = window.setInterval(() => {
+ const stats = this.stats[requestSchedulerName]
+
+ stats.remainingMilliSeconds -= 1000
+
+ if (stats.remainingMilliSeconds <= 0) {
+ this.timeouts[requestSchedulerName] = window.setTimeout(() => this.getStats(), stats.remainingMilliSeconds + 100)
+ }
+ }, 1000)
+ })
+ }