code: def checkForFinishedThreads(self):
          'Mark terminated threads with endTime.'
          for t in self.unfinishedThreads:
              if not t.is_alive():
                  t.endTime = time.process_time()
                  if getattr(t, 'status', None) is None:
                      t.status = 'endedf checkForFinishedThreads(self):
          'Mark terminated threads with endTime.'
          for t in self.unfinishedThreads:
              if not t.is_alive():
                  t.endTime = time.process_time()
                  if getattr(t, 'status', None) is None:
                      t.status = 'ended'
docs: Mark terminated threads with endTime.