code: def spin(self, start_message, end_message, fmt=None, interval=100, values=None):
          
          spinner = ProgressIndicator(self.io, fmt, interval, values)
  
          return spinner.auto(start_message, end_message)
docs: Automatically spin a progress indicator.