MagicStack / asyncpg

A fast PostgreSQL Database Client Library for Python/asyncio.
Apache License 2.0
6.99k stars 404 forks source link

Use anyio instead of asyncio for trio compatibility #1119

Open marcuslimdw opened 8 months ago

marcuslimdw commented 8 months ago

Currently, it is difficult (even with trio-asyncio) to mix asyncio-using and trio-using libraries in the same project. Replacing direct use of asyncio throughout asyncpg with anyio will allow users to choose the concurrency backend that they prefer and increase asyncpg's compatibility with other async libraries.