docs: def _clean(self):
          """Remove references of inactive workers periodically."""
          if self._workers:
              for w in self._workers:
                  if w.is_finished():
                      self._workers.remove(w)
          else:
              self._current_worker = None
              self._timer.stop()