Если запустить REPL с модулем asyncio, то вы входите в особый асинхронный REPL.
user@host:~$ python -m asyncio
asyncio REPL 3.12.7 ...
Use "await" directly instead of "asyncio.run()".
>>> import asyncio
>>>
В этом режиме
- создаётся и настраивается event loop
- уже импортирован asyncio
- работает await на верхнем уровне
То есть такая команда сработает без ошибок!
await asyncio.sleep(3)
Удобно для тестирования асинхронных функций без создания ивентлупов и остальной обвязки.
Работает в: 3.8+
#tricks#async
CMC Price Error: Toncoin Drops to $0.27
The price of TON was shown at a level of 0.27 at times on CoinMarketCap due to a technical issue. It's removed now from Top 10.
❤️ Meanwhile, Toncoin continues to trade at $5.19 on Binance and CoinGecko.
#TON#CMC#price#Toncoin
🍦Vanilla Finance: Project Updates
Vanilla Finance announced that its TGE has been postponed to Q2 2025.
According to the team, this decision was made due to unfavorable market conditions and aims to ensure the most successful launch possible. The extra time will allow them to refine the Total Return Swap (TRS) product, which developers believe can become a cornerstone of DeFi infrastructure and unlock new income opportunities.
In preparation for the TGE, the team is also deepening cooperation with leading centralized exchanges and forming partnerships with players such as #CoinMarketCap and BNB Chain by participating in their MVB and CMC Labs programs.
🍦Mini-app
#TGE#CMC#VanillaFinance