]> 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>
Thu, 13 Jun 2024 13:36:22 +0000 (09:36 -0400)
commit0b99307e21b071405da3e686143b64041498acae
tree9673e8cae5481cb285f63fbbecda83354e760364
parent307cefe471cfb8de41bc9354cc00eb6e01598b0f
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)
doc/build/changelog/unreleased_14/greenlet_compat.rst [new file with mode: 0644]
lib/sqlalchemy/util/_concurrency_py3k.py