Loop that runs in a thread to process requests synchronously.

def process_requests(self):
        """
        Loop that runs in a thread to process requests synchronously.
        """
        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