]> git.ipfire.org Git - thirdparty/tornado.git/commit
concurrent: Use asyncio.Future when available 2073/head
authorBen Darnell <ben@bendarnell.com>
Mon, 5 Jun 2017 03:55:59 +0000 (23:55 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 5 Nov 2017 20:42:32 +0000 (15:42 -0500)
commitac13ee5f64cd3bceb1628dbcbbfc77445358038f
tree06a7bd9a2985a9a463466b3298d2fbe8c018cb9d
parent42a1d23bf4b11f1575def9875219ee7bc78b2e7e
concurrent: Use asyncio.Future when available

This improves compatibility with asyncio, but required small tweaks to
various tests due to changes in callback timing (asyncio future
callbacks are always scheduled for the next IOLoop iteration)

concurrent: Always schedule Future callbacks on the IOLoop

Make the python 2/tornado-specific Future implementation more
consistent with asyncio's.
19 files changed:
docs/concurrent.rst
docs/guide/security.rst
tornado/concurrent.py
tornado/gen.py
tornado/iostream.py
tornado/locks.py
tornado/platform/asyncio.py
tornado/queues.py
tornado/test/asyncio_test.py
tornado/test/concurrent_test.py
tornado/test/curl_httpclient_test.py
tornado/test/gen_test.py
tornado/test/httpserver_test.py
tornado/test/locks_test.py
tornado/test/runtests.py
tornado/test/tcpclient_test.py
tornado/test/tcpserver_test.py
tornado/test/twisted_test.py
tornado/testing.py