code: def run(self):
          
          while True:  # make sure to run at least once before exiting
              with self._lock:
                  self._update(self._data)
              if self._done:
                  break
              time.sleep(1)
docs: Overrides parent method to implement thread's functionality.