Если запустить 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
#ZEN/USDT analysis :
#ZEN is in an uptrend, forming higher highs (HHs) and higher lows (HLs) above the 200 EMA. The price is currently in a correction phase, showing a retracement to test the 200 EMA. It is advisable to wait for the price to test this zone for a long entry, as it is expected to rebound and resume its bullish momentum.
TF : 1D
Entry : $17.66
Target : $40.00
SL : $11.90