def __iter__(self, min=min, nowfun=monotonic,
                 pop=heapq.heappop, push=heapq.heappush):
        max_interval = self.max_interval
        queue = self._queue

        while 1:
            if queue:
                eventA = queue[0]
                now, eta = nowfun(), eventA[0]

                if now < eta:
                    yield min(eta - now, max_interval), None
                else:
                    eventB = pop(queue)

                    if eventB is eventA:
                        entry = eventA[2]
                        if not entry.canceled:
                            yield None, entry
                        continue
                    else:
                        push(queue, eventB)
            else:
                yield None, None
Handle GET request
dataset/ETHPy150Open celery/kombu/kombu/async/timer.py/Timer.__iter__--crossover with--dataset/ETHPy150Open freakboy3742/pyxero/examples/partner_oauth_flow/runserver.py/PartnerCredentialsHandler.do_GET