]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Allow contextvars to be set in events when using asyncio
authorFederico Caselli <cfederico87@gmail.com>
Thu, 14 Apr 2022 22:29:01 +0000 (00:29 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Sun, 17 Apr 2022 08:44:42 +0000 (10:44 +0200)
commit73f2b5bcdcc431ec77c62ffd49bdcbf4718fbfc1
treec0cddb5695e80213bbfc19e2d246c9be93379094
parentc538f810bce57472c8960a0a6c4c61024b00f3ed
Allow contextvars to be set in events when using asyncio

Allow setting contextvar values inside async adapted event handlers.
Previously the value set to the contextvar would not be properly
propagated.

Fixes: #7937
Change-Id: I787aa869f8d057579e13e32c749f05f184ffd02a
doc/build/changelog/unreleased_14/7937.rst [new file with mode: 0644]
lib/sqlalchemy/util/_concurrency_py3k.py
test/base/test_concurrency_py3k.py