Если запустить 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
🚀🚀 Storming Profits in the Premium Group
🎯🎯#BERA/USDT has covered all the targets to give a profit 298% for all Premium Members
👁🗨Contact @futurechief to enter the Premium Futures & SPOT Group for daily gains
🎯🎯 Non Stop Huge profit on Premium signals for all Premium Members
🔥🔥#BERA/USDT has crossed all the profit targets and made a great profit of 88%
👁🗨Contact @futurechief to enter the Premium Futures & SPOT Group for daily gains
🚀🚀 Huge 298% Profit on #BERA/USDT for our Premium Members on Binance Futures/Bybit/OKXX/Kucoin/Bitget
✅✅ All target completed
👁🗨Contact @primemod to enter the Premium Group for high quality SPOT & FUTURES Signals
🚀🚀 78% Profit on #BERA/USDT for our Premium Members on Binance Futures/Bybit/OKXX/Kucoin/Bitget
✅✅ All target completed
👁🗨Contact @primemod to enter the Premium Group for high quality SPOT & FUTURES Signals