Стандартная библиотека asyncio это стандарт (начиная с Py3.4) для работы с асинхронным кодом. Но эта библиотека достаточно низкоуровневая, со своими проблемами, устаревшими подходами.
Чтобы исправить это, были созданы разные обертки и альтернативы с реализацией популярных инструментов и паттернов асинхронного программирования. Это такие библиотеки как:
- trio: улучшает корректность выполнения, не оставляя потерянных корутин при ошибках, то есть предлагает Structured Concurrency из коробки.
- curio: упрощение синтаксиса и читаемости кода, больше похоже на работу с потоками.
- anyio: универсальная обертка над asyncio или trio плюс множество вспомогательных инструментов.
anyio используется в FastAPI как основная библиотека для работы с асинхронным кодом и вызовом синхронного кода из асинхронного.
В общем, рекомендую почитать про возможности anyio, возможно вы более не будете использовать чистый asyncio в своих проектах)
Это совсем не значит что дефолтный asyncio плох, он тоже даёт достаточный для работы функционал и продолжает развиваться. Например, в версии 3.11 появились TaskGroup, с похожим на trio функционалом. Так что он тоже актуален, просто придется больше написать кода самостоятельно.
#libs#async
🤑6th Season of The Open League is coming!
The next season of the Open League is already approaching, the essence of which is to stimulate ecosystem and community projects. This in turn leads to an increase in the rate of tokens, which have now been significantly lowered against the background of recent events. The 6th season of the Open League starts on September 12.
Аre you ready for the new season?
#TheOpenLeague#TOL#TON#Telegram
MyTonWallet x $HMSTR x $CATI
😺The Catizen listing has ended on CEX and DEX exchanges, but the project continues to develop even after the #airdrop phase. The project takes 1st place in the 6th season of The #TOL (The Open League) normie league, which means that even after giving away 🪙 $CATI, we need to continue making on-chain transactions in order to increase our chances of a final airdrop from TOL.
👌 Now #TheOpenLeague has gone on a two-week break, but after that we will continue to do daily check-ins, using MyTonWallet, in the Explore section.
On September 26, we will have another listing – #HamsterKombat🪙 ($HMSTR). We can also use the MTW wallet to receive coins:
🟨Select the "on-chain airdrop" option in the hamster app and use MyTonWallet. No KYC checks, only reliable decentralization. We kindly remind you that you can connect the wallet only until September 21, 08:00 UTC.
🗓 Tokens will be available on September 26, starting at 10:00 UTC, and for further convenience, you can use the built-in exchange inside #MyTonWallet.
The tournament from MyTonWallet and TON Poker has also recently ended with a prize pool of $1,000 and 5,000 💎 $MY. The results can be found here.
Channel | Chat | Download
🇺🇸#макро#США
👆Нераспроданные запасы новых односемейных домов на всех стадиях строительства — от ещё не начатых до завершённых — выросли на 9,3% в годовом исчислении до 492000 домов без учёта сезонных колебаний, что является самым высоким показателем с декабря 2007 года.
🔴 Нераспроданные запасы построенных новых домов выросли на 53% по сравнению с прошлым годом и составили 116000 домов, что является самым высоким показателем с июля 2009 года - в разгар жилищного кризиса, когда застройщики пытались выжить...
🔴 Продажи готовых домов упали на 25% по сравнению с предыдущим месяцем в октябре до 21000 домов.
Жду проблемы у застройщиков сейчас:
#LEN#DHI#TOL#MTH#PHM#CCS
🏆Get 6 cool SBTs from TOL participants!
TBook is an modular incentive layer backed by TON Foundation. Now you have a chance to get 6 cool Soul-Bound Tokens from 6 top-tier projects participants of the 💎 TON Open League! Engage with the projects in staking, borrowing, lending, and trading to earn SBTs and claim the 🙏TON Society airdrop. Don't forget to check your rating! 🚀
🤩Go get your SBTs now!
#SBT#NFT#TheOpenLeague#EVAA#DeDust#Tonstakers#bemo#STONfi#TOL#StormTrade