async waitToFinish() {
    await Promise.all(this.groups_.values());
    return this.estimator_.getTotalDownloaded();
  }
Get a promise that will resolve when all currently queued downloads have
finished.

@return {!Promise<number>}