Если запустить 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
#SKL/USDT analysis :
#SKL is currently facing rejection at the resistance zone. The price is expected to decline from this point and continue to decrease, testing the support levels. Previous lows are likely to be tested. Wait for pullback for short entry.
TF : 4h
Entry : $0.04237
Target : $0.03509
SL : $0.04648
#SKL/USDT analysis :
#SKL has been rejected from the high time frame (HTF) resistance zone and has broken the support level. This indicates that the price is likely to continue declining further and test the previous swing low.
TF : 15min
Entry : $0.03413
Target : $0.03211
SL : $0.03541