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.
Currently, it is difficult (even with
trio-asyncio
) to mixasyncio
-using andtrio
-using libraries in the same project. Replacing direct use ofasyncio
throughoutasyncpg
withanyio
will allow users to choose the concurrency backend that they prefer and increaseasyncpg
's compatibility with other async libraries.