Если запустить 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
#NEO/USDT analysis :
#NEO is currently in an uptrend, having retraced to test a previously respected support zone. The price is expected to rebound from this level and continue its upward movement to retest previous highs.
TF : 1D
Entry : $14.00
Target : $26.21
SL : $10.50
#NEO/USDT analysis :
#NEO is currently approaching support zone. Price is expected to rebound from this zone and resume its bullish momentum to test previous highs.
TF : 2H
Entry : $19.17
Target : $23.80
SL : $17.12
#NEO/USDT analysis :
#NEO is currently in a downtrend, forming lower lows (LLs) and lower highs (LHs) structure. The price has broken the trendline and is expected to rise higher during the correction phase, testing the previous swing high.
TF : 1h
Entry : $9.24
Target : $9.61
SL : $8.99
#NEO/USDT analysis :
#NEO is presently in a downtrend, trading below the 200 EMA. The price is anticipated to maintain its bearish momentum and revisit previous lows. To contemplate initiating a short position, it is recommended to wait for a retracement and a retest of the established resistance level.
TF : 4h
Entry : $24.05
Target : $9.73
SL : $10.03