Если запустить 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
#ETHFI
Here's a closer look at the technical analysis:
• Volume has been steadily increasing over the past three days.
• The 5-day Exponential Moving Average (EMA5) has crossed over the 20-day EMA, indicating a positive trend.
• While the Relative Strength Index (RSI) is high in lower time frames, it remains relatively low on the daily chart.
The price has broken out of resistance with significant volume. If it can sustain this momentum without retracing back into the previous range, there's potential for further upward movement