Skip to content

Commit

Permalink
Doc updates from Zhigang Wang
Browse files Browse the repository at this point in the history
  • Loading branch information
bdarnell committed Jun 12, 2013
1 parent 3638ce4 commit 6161d0f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tornado/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def on_fetch(self, response):
could be written with ``gen`` as::
class GenAsyncHandler(RequestHandler):
@asynchronous
@gen.coroutine
def get(self):
http_client = AsyncHTTPClient()
Expand Down Expand Up @@ -166,13 +165,7 @@ def coroutine(func):
"""Decorator for asynchronous generators.
Any generator that yields objects from this module must be wrapped
in either this decorator or `engine`. These decorators only work
on functions that are already asynchronous. For
`~tornado.web.RequestHandler` :ref:`HTTP verb methods <verbs>` methods, this
means that both the `tornado.web.asynchronous` and
`tornado.gen.coroutine` decorators must be used (for proper
exception handling, ``asynchronous`` should come before
``gen.coroutine``).
in either this decorator or `engine`.
Coroutines may "return" by raising the special exception
`Return(value) <Return>`. In Python 3.3+, it is also possible for
Expand Down

0 comments on commit 6161d0f

Please sign in to comment.