]> git.ipfire.org Git - thirdparty/tornado.git/commit
return_future and friends now pass the result, not the Future, to the callback.
authorBen Darnell <ben@bendarnell.com>
Sun, 3 Mar 2013 23:17:29 +0000 (18:17 -0500)
committerBen Darnell <ben@bendarnell.com>
Sun, 3 Mar 2013 23:17:29 +0000 (18:17 -0500)
commite97f9afef36f989eb0d5ffd7e7007526f0d1dedc
treebb3ab4591fe01121c928ed6a0a8cc9ce569b628b
parentbc4917b65b25e26b388abc181895befa4cc86202
return_future and friends now pass the result, not the Future, to the callback.

Functions and decorators that take an optional callback and return
a future (return_future, gen.concurrent, and run_executor) no longer pass
the Future object to the callback.  This results in somewhat less flexible
error handling, but is more consistent with prevailing practice without
Futures.
tornado/concurrent.py
tornado/gen.py
tornado/netutil.py
tornado/simple_httpclient.py
tornado/test/concurrent_test.py
tornado/test/gen_test.py
tornado/test/netutil_test.py