Если запустить 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
🎬 BOOM! SingSing’s brand-new TVC has landed! 🎬
Get ready to dive into the premier launchpool and social gaming platform! Where games, and epic rewards are just the beginning. 🎶💎
🔥 Watch now and catch the SingSing vibe!
👉 Video link: https://youtu.be/dneU7k6fnH0
Like, Share the TVC to earn $KARA Reward in Tycoon Game!
#SingSing#TVC#SocialGaming#PlayAndEarn
🚨 IDO is coming! 🚨
Get ready to join the action, secure your spot for exclusive Airdrops, and count down with us ⏳💥
👉 Stay tuned & follow for updates!
#IDO#Airdrop#StayTuned#SingSing#SocialGaming#CryptoRewards
🎤Announcement | Chat | X (Twitter) | Website | Game
🚀 Thrilled to announce our partnership with K.O.I! 🎉
K.O.I is a Revolutionary Leap in Social Gaming with AI-Enhanced Virtual Pets. Together, we're taking a revolutionary leap in social gaming with AI-enhanced virtual pets.
🐾 Get ready for an extraordinary journey with SingSing and K.O.I! 🌟
#SingSing#KOI#Partnership#SocialGaming#AIVirtualPets