def spawn_request(self): sched.unmark(self.TIMEOUT, self.spawn_idle_timeout) spawn(self.spin, self.request[0], self.header, self.fd, self.request[1], self.request[2]) if not self.spin.ACTIVE: lose(self.spin)
def consume(): try: iter.next() except StopIteration: sched.unmark(delay, consume)