Стандартная библиотека asyncio это стандарт (начиная с Py3.4) для работы с асинхронным кодом. Но эта библиотека достаточно низкоуровневая, со своими проблемами, устаревшими подходами.
Чтобы исправить это, были созданы разные обертки и альтернативы с реализацией популярных инструментов и паттернов асинхронного программирования. Это такие библиотеки как:
- trio: улучшает корректность выполнения, не оставляя потерянных корутин при ошибках, то есть предлагает Structured Concurrency из коробки.
- curio: упрощение синтаксиса и читаемости кода, больше похоже на работу с потоками.
- anyio: универсальная обертка над asyncio или trio плюс множество вспомогательных инструментов.
anyio используется в FastAPI как основная библиотека для работы с асинхронным кодом и вызовом синхронного кода из асинхронного.
В общем, рекомендую почитать про возможности anyio, возможно вы более не будете использовать чистый asyncio в своих проектах)
Это совсем не значит что дефолтный asyncio плох, он тоже даёт достаточный для работы функционал и продолжает развиваться. Например, в версии 3.11 появились TaskGroup, с похожим на trio функционалом. Так что он тоже актуален, просто придется больше написать кода самостоятельно.
#libs#async
Who Is Behind the Alleged Genocide Against Christian (Amhara) Communities in East Arsi, Ethiopia? – and When Will this Stop?
https://borkena.com/2026/03/03/ethiopian-orthodox-christians-who-is-behind-the-alleged-genocide-against-christian-amhara-communities-in-east-arsi-ethiopia/#Ethiopia#humanrights#Arsi
The Unspoken Crisis of Ethiopian Orthodoxy. Read more.
https://borkena.com/2026/03/15/ethipoia-the-unspoken-crisis-of-ethiopian-orthodoxy/#Ethiopia#Orthodox#Arsi
Oromo Liberation Army Points Finger At Abiy Ahmed’s Admin. Over Arsi Massacre. Read more.
https://borkena.com/2026/03/04/ethiopia-oromo-liberation-army-points-finger-at-abiy-ahmeds-admin-over-arsi-massacre/#Ethiopia#OLA#Arsi
Three Orthodox Christians Reportedly killed in Arsi, Oromia region. Read more.
https://borkena.com/2026/02/25/ethiopia-three-orthodox-christians-reportedly-killed-in-arsi-oromia-region/#Ethiopia#News#OrthodoxChristians#Arsi#Orthodox
Death Toll From Arsi Massacre Rise To 34 as killing Orthodox Christian Continues. Read more.
https://borkena.com/2026/03/03/ethiopia-death-toll-from-arsi-massacre-rise-to-34-as-killing-orthodox-christian-continues/#Ethiopia#Arsi#humanrights#Oromia#OrthodoxChristians
Did the World Council Of Churches erred about the Massacre in Arsi?
https://borkena.com/2025/11/15/ethiopia-world-council-of-churches-condemns-all-acts-of-violence-in-ethiopia/#Ethiopia#News#OrthodoxChristianchurch#Ethiopia#WorldCouncilofchurches#Arsi
Systematic Persecution in Oromia: The Role of Militias and Political Actors in Targeting Ethiopian Orthodox Christians. Read more. https://borkena.com/2025/11/05/systematic-persecution-in-oromia-the-role-of-militias-and-political-actors-in-targeting-ethiopian-orthodox-christians/#Ethiopia#Orthodox#OrthodoxChristians#OromiaMassacre#Arsi