Если запустить 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
🔰#BCH Update - Price is pushing higher after the recent bounce.
Keeping a close watch on $603, which remains a key upside target on this leg up, as it aligns with the yearly open — a significant level that often acts as strong resistance.
🔰#BCH Update - Price is pushing higher after the recent bounce.
Keeping a close watch on $603, which remains a key upside target on this leg up, as it aligns with the yearly open — a significant level that often acts as strong resistance.
✅✅ 30% Profit on #BCH/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
✅✅ 38% Profit on #BCH/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