Если запустить 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
#AUCTION/USDT analysis :
#AUCTION has tested the 200 EMA and rebounded from it. The price has broken out of the trendline, confirming the continuation of the bullish trend. The price is anticipated to test the swing high level.
TF : 30min
Entry : $33.35
Target : $37.30
SL : $30.98
#AUCTION/USDT analysis :
#AUCTION is in an uptrend, forming higher highs (HHs) and higher lows (HLs). The price has recently broken out of the trendline, indicating a potential resumption of its bullish momentum. It is anticipated that the price will continue to rise and test previous highs.
TF : 30min
Entry : $20.05
Target : $21.53
SL : $19.06