Если запустить 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
Update ✅
TAPS is now listed on the #BUIDL token list of ApeSwap ! We're excited to graduate soon from the ApeSwap #Build program and forge new partnership and grow TAPSWAP community. Thanks for the support Fam! 🚀🚀
#BUIDL#TAPSWAP#APESWAP
https://dex.apeswap.finance/#/swap
How about a New UI and New Farm this #HOTDEFISUMMER ? Quench your Thirst of Yields by staying to our Lake Farms! MATIC-BUSD, BANANA-BNB , $BAKE and $Burger farm and BSC CORE Locked LP!
What a exciting week ahead of us. #TAPSWAP#YIELD#APESWAP
After the horse , what comes next?
yes , a Cow
New farm on #TAPSWAP OASIS pool, A single asset staking where you can stake $BIFI and earn $TAPS!
Check it out!✍️
https://dapp.tapswap.money/#/pools
#HotDeFiSummer#BSC#AMM#YieldFarming#ApeSwap