Permalink
Browse files

correcting error in docs

  • Loading branch information...
1 parent 708f341 commit 00a07c551f7ca0b7ef1b5f0f7f7745974fa87208 Jeremy Kelley committed Feb 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -68,7 +68,7 @@ Or, you can wrap your methods with async_yield...
fetchdata = yield AsyncHTTPClient.fetch( 'http://over/there',
callback=self.yield_cb )
# do stuff with fetchdata here
- self.write(somedata)
+ self.write(fetchdata.body if not fetchdata.error else '')
The @async_yield wrapper doesn't work for every method with callbacks but it

0 comments on commit 00a07c5

Please sign in to comment.