code: def _wait_for_transfer_threads(self, terminate):
          # type: (Uploader, bool) -> None
          
          if terminate:
              self._upload_terminate = terminate
          for thr in self._transfer_threads:
              thr.join()
docs: Wait for transfer threads
          :param Uploader self: this
          :param bool terminate: terminate threads