]> git.ipfire.org Git - thirdparty/tornado.git/commit
asyncio: Preserve contextvars across SelectorThread on Windows (#3479)
authorbestcondition <admin@bestcondition.cn>
Wed, 14 May 2025 17:33:06 +0000 (01:33 +0800)
committerGitHub <noreply@github.com>
Wed, 14 May 2025 17:33:06 +0000 (13:33 -0400)
commitae4a4e4feafc631c3dba64c3fbe185d05c37e356
tree6e34204f42cb78ffa5cea78d8a9982d299c2776a
parent197ff13f768b9abd26b0ecb97989bdd40283c345
asyncio: Preserve contextvars across SelectorThread on Windows (#3479)

contextvars that were set on the main thread at event loop creation need to be preserved across callbacks that pass through the SelectorThread.
tornado/platform/asyncio.py
tornado/test/asyncio_test.py