code: def stop(self):
          
          super().stop()
          while not self.stopped:
              # stop() should block, so printing afterwards isn't interrupted.
              sleep(0.001)
          # Retrieve the latest exception, if any.
          exc = self.exception
          if exc is not None:
              raise exc
docs: Stop this animated progress, and block until it is finished.