apollo/services/trackers/AggregateTracker.js

13 lines
223 B
JavaScript
Raw Normal View History

2024-12-04 23:18:35 -05:00
class AggregateTracker {
constructor(trackers) {
this._trackers = trackers;
}
poll() {
const media = []
for (let tracker of this._trackers)
media.push.apply(tracker.poll());
return media;
}
}