Permalink
Browse files

updating README to reflect changes in async_yield

  • Loading branch information...
1 parent f20c1fe commit a50f12b8713e539ed92fda4706edd15023a573a0 Jeremy Kelley committed Mar 2, 2011
Showing with 1 addition and 4 deletions.
  1. +1 −4 README.md
View
@@ -94,11 +94,8 @@ especially when used in conjunction with async_yield.
class SomeHandler(RequestHandler, CushionDBMixin, AsyncYieldMixin):
@async_yield
- def prepare(self):
- yield self.db_setup('someDB', uri_to_couchdb, self.yield_cb)
-
- @async_yield
def get(self):
+ yield self.db_setup('someDB', uri_to_couchdb, self.mycb)
x = yield self.db_one('some_key')
# ... do stuff wth your data in x now

0 comments on commit a50f12b

Please sign in to comment.