code: def regular_tasks(self):
          
          with self.lock:
              ret = self._iq_response_handlers.expire()
              if ret is None:
                  return 1
              else:
                  return min(1, ret)
docs: Do some housekeeping (cache expiration, timeout handling).
  
          This method should be called periodically from the application's
          main loop.
  
          :Return: suggested delay (in seconds) before the next call to this
                                                                      method.
          :Returntype: `int`