Стандартная библиотека asyncio это стандарт (начиная с Py3.4) для работы с асинхронным кодом. Но эта библиотека достаточно низкоуровневая, со своими проблемами, устаревшими подходами.
Чтобы исправить это, были созданы разные обертки и альтернативы с реализацией популярных инструментов и паттернов асинхронного программирования. Это такие библиотеки как:
- trio: улучшает корректность выполнения, не оставляя потерянных корутин при ошибках, то есть предлагает Structured Concurrency из коробки.
- curio: упрощение синтаксиса и читаемости кода, больше похоже на работу с потоками.
- anyio: универсальная обертка над asyncio или trio плюс множество вспомогательных инструментов.
anyio используется в FastAPI как основная библиотека для работы с асинхронным кодом и вызовом синхронного кода из асинхронного.
В общем, рекомендую почитать про возможности anyio, возможно вы более не будете использовать чистый asyncio в своих проектах)
Это совсем не значит что дефолтный asyncio плох, он тоже даёт достаточный для работы функционал и продолжает развиваться. Например, в версии 3.11 появились TaskGroup, с похожим на trio функционалом. Так что он тоже актуален, просто придется больше написать кода самостоятельно.
#libs#async
#HOT/USDT analysis :
#HOT has broken and retested the support levels, which are now acting as resistance for the price. The price is currently in a downtrend on the higher timeframe and is expected to continue its momentum from the current level.
TF : 1H
Entry : $0.00135
Target : $0.00123
SL : $0.00142
#HOT/USDT analysis -
#HOT is currently consolidating sideways above a support line. The price has tapped into liquidity from previous lows below the support line. It appears poised to move upwards, with the previous high as the target level.
TF : 5min
Entry : $0.00145
Target : $0.00150
SL : $0.00143
#HOT/USDT analysis -
#HOT is currently on a downtrend, trading below the 200 EMA. At the moment, it's experiencing a pullback and has retraced to previous support levels near the 200 EMA. The price is encountering resistance near the 200 EMA and appears poised to start moving downwards. It's likely that the price will test previous lows in the near future.
TF : 1h
Entry : $0.00184
Target : $0.00162
SL : $0.00201
4834 new target 5000 🔥
🔥Claim/198 activationsFiredrop 0.25 HOT
How to claim:
╔•1.Join our village.
╠•
╚•2.Subscribe claim 0.25 HOT
🎁Gifts, NFTs, stars, premium Telegram, crypto airdrops, and tokens like 🔥HOT and more! Premium 👥VIP status! Join and win every day!
#hot
#HOT rejected from the ceiling of supply zone on 3D Time frame,it can bounce again from the Green zone, everything is bullish now
📈
❄️@signals_bitcoin_crypto❄️
❄️@Shadow_support0o❄️
🪙1853 new target 2000 #HOT🔥
How to claim:
1) Join our village.
2) Follow @ChatCryptoTON
🔥Claim 170/288 activationsFiredrop0.15 HOT
🔥Claim/88 activationsFiredrop0.25 HOT