Пример #1
0
    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)
Пример #2
0
 def consume():
     try:
         iter.next()
     except StopIteration:
         sched.unmark(delay, consume)
Пример #3
0
 def consume():
     try:
         iter.next()
     except StopIteration:
         sched.unmark(delay, consume)