def _next(self):
        while 1:
            try:
                resource = self.resources[self.pos]
                self.pos += 1
                return resource
            except __HOLE__:
                self.pos = 0
                if not self.resources:
                    raise self.predicate()
dataset/ETHPy150Open celery/kombu/kombu/utils/scheduling.py/FairCycle._next