Если запустить 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
#CHZ/USDT analysis :
#CHZ is currently in a downtrend and making new lows. Look for a price retracement to test the resistance zone for a short entry opportunity. Lower levels will be the target level.
TF : 2H
Entry : $0.04862
Target : $0.04200
SL : $0.05193
#CHZ/USDT analysis :
#CHZ is in an uptrend, trading above the 200 EMA. After the breakout of the previous swing high, the price is sustaining above it. The price is anticipated to continue its bullish momentum and rise higher. Wait for a pullback to the support zone for a long entry.
TF : 2H
Entry : $0.0535
Target : $0.0560
SL : $0.0519