def __next__(self):
        # Override __next__ to continue polling until a non-empty page of events is returned
        while True:
            results = super(EventsPageIterator, self).__next__()
            if len(results) > 0:
                return results
            else:
                time.sleep(self.options['poll_interval'])
dataset/ETHPy150Open Asana/python-asana/asana/page_iterator.py/EventsPageIterator.__next__/original