]> git.ipfire.org Git - thirdparty/tornado.git/commit
Optimize gen.with_timeout for tornado futures.
authorBen Darnell <ben@bendarnell.com>
Sun, 20 Apr 2014 01:22:43 +0000 (21:22 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 20 Apr 2014 01:22:43 +0000 (21:22 -0400)
commitd3bf586892d2dd9cb93be57ea2d4cb3b0777a8fa
tree201e44c99a478889de1e4c0a4bed66caa2147048
parent5faab93af7d2b857c862fefb9f595d86276d1322
Optimize gen.with_timeout for tornado futures.

We can avoid some IOLoop and stack_context interactions if we know
that the Future will resolve on the IOLoop's thread.
tornado/gen.py
tornado/test/gen_test.py