Skip to content

Instantly share code, notes, and snippets.

Kyle Graehl kzahel

Block or report user

Report or block kzahel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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.