def iter_poll(self, query_id=None, sequence_no=None, params=None,<EOL>**kwargs):  
while True:<EOL><INDENT>r = self.poll(<EOL>query_id, sequence_no, params, enforce_json=True,<EOL>**kwargs<EOL>)<EOL>if r.json()['<STR_LIT>'] == "<STR_LIT>":<EOL><INDENT>if sequence_no is not None:<EOL><INDENT>sequence_no += <NUM_LIT:1><EOL><DEDENT>else:<EOL><INDENT>sequence_no = <NUM_LIT:1><EOL><DEDENT>yield r<EOL><DEDENT>elif r.json()['<STR_LIT>'] == "<STR_LIT>":<EOL><INDENT>yield r<EOL>break<EOL><DEDENT>elif r.json()['<STR_LIT>'] == "<STR_LIT>":<EOL><INDENT>yield r<EOL>break<EOL><DEDENT>elif r.json()['<STR_LIT>'] == "<STR_LIT>":<EOL><INDENT>yield r<EOL>time.sleep(<NUM_LIT:1>)<EOL><DEDENT>else:<EOL><INDENT>raise PanCloudError(<EOL>'<STR_LIT>' % r.json()['<STR_LIT>']<EOL>)<EOL><DEDENT><DEDENT>
Retrieve pages iteratively in a non-greedy manner.

        Automatically increments the sequenceNo as it continues to poll
        for results until the endpoint reports JOB_FINISHED or
        JOB_FAILED, or an exception is raised by the pancloud library.

        Args:
            params (dict): Payload/request dictionary.
            query_id (str): Specifies the ID of the query job.
            sequence_no (int): Specifies the sequenceNo.
            **kwargs: Supported :meth:`~pancloud.httpclient.HTTPClient.request` parameters.

        Yields:
            requests.Response: Requests Response() object.

        Examples:
            Refer to ``logging_iter_poll.py`` example.