@asynchronous decorator should be used to mark a method that is already asynchronous; it does not make the method asynchronous." (http://stackoverflow.com/questions/21907752/tornado-file-upload-is-blocking)If this decorator is given, the response is not finished when the method returns. It is up to the request handler to call self.finish() to finish the HTTP request. Without this decorator, the request is automatically finished when the get() or post() method returns. Example:class MyRequestHandler(RequestHandler):@asynchronousdef get(self):http = httpclient.AsyncHTTPClient()http.fetch("http://friendfeed.com/", self._on_download)def _on_download(self, response):self.write("Downloaded!")self.finish()
--
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornad...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.