Если запустить 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
#FUN/USDT analysis :
#FUN has established a breakout from its trendline after rebounding from the support zone. The price is anticipated to continue rising from its current level and is likely to test the previous swing high.
TF : 4H
Entry : $0.003263
Target : $0.003644
SL : $0.003008
#FUN/USDT analysis :
#FUN is currently consolidating within a resistance zone near the 200 EMA. A price rejection is expected from there, and a continuation of the downtrend is anticipated. Wait for the price to break below the trendline for a short entry.
TF : 2H
Entry : $0.00314
Target : $0.00287
SL : $0.00326