Если запустить 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
#ICP/USDT analysis :
#ICP is currently developing a symmetrical triangle pattern on the higher time frame (HTF). A breakout above the resistance level of $10.230 is anticipated, which could signal the continuation of a bullish rally. For a confirmed entry, it is advisable to wait for the price to surpass this resistance level.
TF : 1W
Entry : $10.230
Target : $20.500
SL : $7.760
✅✅ 222% Profit on #ICP/USDT for our Premium Members on Binance Futures/Bybit/OKX & KuCoin
👁🗨Contact @primemod to enter the premium group & make daily gains on Futures/Bybit/OKX/Kucoin & Bitget market