@classmethod
def _on_request_complete(cls, result, **_):
    """Called when a request completes or times out.

        :param result: the response received from the application
            or :data:`._request_timeout_failure`

        """
    cls._result = result
    cls.io_loop.stop()
