Skip to content

Instantly share code, notes, and snippets.

Kyle Graehl kzahel

View GitHub Profile
View nested_async_yield
def asyncsleep(t, callback=None):
ioloop.add_timeout( time.time() + t, callback )
class NestedYieldAsync(tornado.web.RequestHandler):
@tornado.web.asynchronous
@tornado.gen.engine
def get(self):
yield gen.Task( self.lots_of_waits )
yield gen.Task( self.lots_of_waits )
You can’t perform that action at this time.