Если запустить 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
🪂Airdrop » LayerX ✅️
💲Reward: Worth of $3000 #Manta
💎Presents Ratings: ⭐️⭐️⭐️⭐️⭐️
👑Winners: all user participants
➡️Airdrop Page Join For Layer X
📚 How to Join Airdrop?
↪️ layer X.... U earn valuable point just by your daily logins
↪️ Follow Twitter page Retweet the Pinned Post & Tag 3 Friends. (Required Task)
✏️Notes:Make sure to complete all tasks to receive rewards.
ℹ️Distribution Date: Layer X we will be on 28th April 2024
💥In the last 24 hours, $MANTA surged to $3.333, marking an increase of over 18%.
With the booming MantaNetwork ecosystem, here is the guide for you on how to get your #Manta wallet on the #TokenPocket mobile wallet and Chrome Extension Wallet.
Full Guide👉https://help.tokenpocket.pro/en/wallet-operation/how-to-create-a-wallet/manta
【Details】https://twitter.com/TokenPocket_TP/status/1750418329746210831
【Powered By】Crypto Box