]> git.ipfire.org Git - thirdparty/tornado.git/commit
gen: Correctly accept concurrent futures in gen.with_timeout.
authorBen Darnell <ben@bendarnell.com>
Mon, 30 Oct 2017 00:14:05 +0000 (20:14 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 5 Nov 2017 20:42:32 +0000 (15:42 -0500)
commit42a1d23bf4b11f1575def9875219ee7bc78b2e7e
tree8ed3e1d0189e82d3ca26b7c1f30b17ab49ce565e
parent3fb845db0b2d2c78d53d8e0cdc2ed1b11a02f170
gen: Correctly accept concurrent futures in gen.with_timeout.

The existing implementation happened to work for tornado's Future
implementation but breaks with the move to asyncio Futures.
tornado/concurrent.py
tornado/test/gen_test.py