Merge pull request #1106 from ajdavis/patch-2

Bugfix in asynchronous_fetch example code.
This commit is contained in:
Ben Darnell 2014-07-12 22:39:31 -04:00
commit 5cae3ff52e
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ callback argument::
http_client = AsyncHTTPClient()
def handle_response(response):
callback(response.body)
http_client.fetch(url)
http_client.fetch(url, callback=handle_response)
And again with a `.Future` instead of a callback::