]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
open up async greenlet for third parties
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 12 Jun 2024 16:42:29 +0000 (12:42 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 12 Jun 2024 16:55:46 +0000 (12:55 -0400)
commit410a4f00ba701c5655fe5de69ab77e866fcc8ee5
treea1dd879df0a18a1957c3eac6c4ffcbe4e31d5e03
parent24206ad815d18507eb8e6203c9eff97a68c00147
open up async greenlet for third parties

Modified the internal representation used for adapting asyncio calls to
greenlets to allow for duck-typed compatibility with third party libraries
that implement SQLAlchemy's "greenlet-to-asyncio" pattern directly.
Running code within a greenlet that features the attribute
``__sqlalchemy_greenlet_provider__ = True`` will allow calls to
:func:`sqlalchemy.util.await_only` directly.

Change-Id: I79c67264e1a642b9a80d3b46dc64bdda80acf0aa
(cherry picked from commit c1e2d9180a14c74495b712e08d8156b92f907ac0)
(cherry picked from commit 1a6ff466b29ad3a114a27f2776538d8d998db2dd)
doc/build/changelog/unreleased_14/greenlet_compat.rst [new file with mode: 0644]
lib/sqlalchemy/util/_concurrency_py3k.py