]> 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:29:52 +0000 (09:29 -0400)
commitd7a19e81f0b636efe4a919d2fbd361963cb4758f
tree77f7732f62958adadeda6bce22ca7c9b80e15db4
parentb320b04af2eb247c3466ac446f138add5eddb3b6
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
doc/build/changelog/unreleased_14/greenlet_compat.rst [new file with mode: 0644]
lib/sqlalchemy/util/concurrency.py