code: def process_requests(self):
          
          while True:
              id, args, kwargs = self.request_queue.get()
              try:
                  response = self._make_request(*args, **kwargs)
              except Exception as e:
                  response = e
              self.results[id] = response
docs: Loop that runs in a thread to process requests synchronously.