]> git.ipfire.org Git - thirdparty/tornado.git/commit
Make gen.Task a function returning a Future instead of a YieldPoint subclass.
authorBen Darnell <ben@bendarnell.com>
Mon, 19 May 2014 03:19:41 +0000 (23:19 -0400)
committerBen Darnell <ben@bendarnell.com>
Mon, 19 May 2014 03:19:41 +0000 (23:19 -0400)
commit518ecf8370643d5bced8fdf48db4cadcd03b7fba
tree0ff8391f6d7e2ea95f698577c20d74d443a18e9b
parentce62ed9b1886b3e0f2c11007ab16d299dd7fa784
Make gen.Task a function returning a Future instead of a YieldPoint subclass.

This improves performance of applications that mix Tasks and Futures
by only entering a stack context for the duration of the Tasks. It
also fixes an obscure regression (#1058).  This might get reverted before
the final release if any backwards-compatibility issues turn up, but
since the status quo also had a regression it's worth a try.

Closes #1058.
docs/gen.rst
tornado/gen.py
tornado/test/gen_test.py