Если запустить 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
👀 Celia LaunchPad is on the way.
Imagine launching your own tradable coin in a single click…no dev skills, no complicated setup. Just you and your idea, ready for the world. 🚀
#CeliaWallet#CeliaLaunchPad#Web3#Crypto
🇳🇬 Nigerians, the wait is over!
Pay your Airtime, Data, Electricity & Cable TV bills directly with crypto on Celia Wallet — no bank, no stress, just crypto. 🔥
We're starting with Nigeria and rolling out GLOBALLY very soon. 🌍
📲 Download Celia Wallet & start paying your bills with crypto today!
$CELIA | #CeliaWallet#CeliaUtilities#CryptoNigeria
Who said crypto can't be fun? 👀🎮
Play games on Celia Wallet. Climb the leaderboard. Earn real rewards in $CELIA & $USDT every single week.
🏆 Top 10 players get PAID weekly, no cap.
And guess what? More games are dropping soon 👀🔥
We're not just a wallet. We're making crypto fun while you trade 💸
Your move 👇 Download Celia and start playing.
https://onelink.to/g6bbq8
#CeliaWallet#PlayToEarn#CryptoGaming#Web3#USDT#CELIA