Если запустить 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
Bitcoin ETFs See Major Inflow Reversal
On January 15, Bitcoin spot ETFs recorded a net inflow of $755 million, marking the first inflow after four days of outflows. The Fidelity ETF (FBTC) led the charge, attracting $463 million. Meanwhile, Ethereum products also saw inflows, totaling $59.78 million.
Forecasts from HashKey Group predict Bitcoin could hit $300,000 by 2025 and Ethereum $8,000, with overall market cap reaching $10 trillion. Analyst insights suggest the Litecoin ETF may be next for approval in the US.
For more details, visit the link.
#Bitcoin#ETF#Cryptocurrency#Ethereum#Investing#Finance#MarketTrends#HashKey#Litecoin#Fidelity#CryptoForecast#AI#VC