Если запустить 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
#MASK/USDT analysis :
#MASK is currently in an uptrend, characterized by higher highs (HHs) and higher lows (HLs), and is trading above the 200-period exponential moving average (EMA).
The price is presently consolidating above a key support zone, and it is anticipated that it will bounce back from this level, continuing its upward trajectory and potentially testing previous highs.
TF : 4H
Entry : $2.877
Target : $3.300
SL : $2.610
#MASK/USDT analysis :
#MASK is in an uptrend. After breaking above the 200 EMA, the price is now sustaining above it. The price is currently consolidating over the support zone and is expected to bounce back from the current level, testing higher levels. Wait for a pullback before entering a long position.
TF : 4h
Entry : $2.265
Target : $2.531
SL : $2.129