Exemple #1
0
 def __init__(self, *args):
     self.reactor = Reactor(*args)
     self.reactor.global_handler = self
     self.io = IOHandler()
     self.loop = tornado.ioloop.IOLoop.instance()
     self.count = 0
     self.reactor.start()
     self.reactor.process()
Exemple #2
0
 def __init__(self, loop=None, handler_base=None):
     self.loop = loop or tornado.ioloop.IOLoop.instance()
     self.io = handler_base or IOHandler()
     self.count = 0
Exemple #3
0
 def __init__(self, loop=None, handler_base=None):
     self.loop = loop or asyncio.get_event_loop()
     self.io = handler_base or IOHandler()
     self._count = 0
     self._reactor = None