]> git.ipfire.org Git - thirdparty/tornado.git/commit
asyncio: Refactor selector to callbacks instead of coroutine
authorBen Darnell <ben@bendarnell.com>
Tue, 1 Sep 2020 20:48:47 +0000 (16:48 -0400)
committerBen Darnell <ben@bendarnell.com>
Wed, 2 Sep 2020 15:10:13 +0000 (11:10 -0400)
commitb03acc54c468c0cf9a3c139b3e59e8627fd7e64f
tree0450f0a7e6f5374cbc8b7d14362e4b83ac350b9b
parent52c45c00fe0bbc52cccdea0048193cc6beba853c
asyncio: Refactor selector to callbacks instead of coroutine

Restarting the event loop to "cleanly" shut down a coroutine introduces
other problems (mainly manifesting as errors logged while running
tornado.test.gen_test). Replace the coroutine with a pair of callbacks
so we don't need to do anything special to shut down without logging
warnings.
tornado/platform/asyncio.py