apollo/services/trackers/aggregate-tracker.js
2024-12-05 15:17:43 +00:00

17 lines
291 B
JavaScript

class AggregateTracker {
#trackers = []
constructor(trackers) {
this.#trackers = trackers;
}
async poll() {
let media = []
for (let tracker of this.#trackers)
media = media.concat(await tracker.poll());
return media;
}
}
module.exports = AggregateTracker;