News for hackers. Stuff that matters.
Re:Callbacks as our Generation's Goto Statement by rosh on Thursday August 15, 2013 @09:18PM (#6221659)
Tornado has a similar interface:

    class GenAsyncHandler(RequestHandler):
        @gen.coroutine
        def get(self):
            http_client = AsyncHTTPClient()
            response = yield http_client.fetch("http://example.com")
            do_something_with_response(response)
            self.render("template.html")
(via http://www.tornadoweb.org/en/stable/gen.html ..)

There are no comments on this comment yet.