]> git.ipfire.org Git - thirdparty/tornado.git/commit
Allow prepare to be asynchronous, and detect coroutines by their result.
authorBen Darnell <ben@bendarnell.com>
Sun, 12 May 2013 23:34:12 +0000 (19:34 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 12 May 2013 23:46:41 +0000 (19:46 -0400)
commitca8495d934f659dffb7350f2e7df77b59b39e0b5
tree672a445530520655e4944f606a897518c8267c08
parent5c47e5d5df0ea99935a6598323a2f8ad1e69a5e5
Allow prepare to be asynchronous, and detect coroutines by their result.

The prepare method does not use the @asynchronous decorator, only
@gen.coroutine (or @return_future; it detects the Future return type).
The same logic is now available for the regular http verb methods as well.

Closes #605.
docs/web.rst
tornado/test/gen_test.py
tornado/web.py