Если запустить 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
🚀 Big Announcement - Snapshot Completed!
🎉 The snapshot for the Tycoon Airdrop was successfully completed at 14:00 UTC, Nov 17!
The qualified participants list is ready, based on the previously announced criteria.
📖 Review the details:
1️⃣ Tycoon Point calculation & mandatory conditions: https://t.me/singsingchannel/965
2️⃣ Eligibility criteria & conversion rate: https://t.me/singsingchannel/996
✨On Nov 18, we will reveal the qualified list along with the corresponding $SING amount you’ve earned⏰Specific claim time will be announced tomorrow (Nov 18). Stay tuned!
#SingSingAirdrop#Web3Gaming
🌟 Some Tips to Qualify for the SingSing Airdrop 🌟
1️⃣Check in as often as possible to earn more Check-in Points and boost your airdrop chances (Counting from Check-in Achievement launch on Sep 27 (UTC))
2️⃣Rank high on the Leaderboard 🏆 (at Successful Business tier or above)
3️⃣Own a Karaoke Box or KTV NFT that’s Rare or higher 🎤
4️⃣Reach Building Level 6+ 🏢
5️⃣Invite as many Friends as possible 📈 (counting from Tycoon Game launch on Sep 22 (UTC))
Don’t miss out on your chance for awesome SingSing airdrops!
#SingSingAirdrop#Tips
🎤Announcement | Chat | X (Twitter) | Website | Game
🚨 Pssst, have you heard? SingSing's Big Airdrop is coming soon!
🚀 How to get this exclusive Airdrop Chance? It's super simple: just play Tycoon Game daily!🎤💸
Play Tycoon every day and get ready for the BIG Airdrop 💎✨
Are you ready to make it rain? 🌧
#SingSingAirdrop#PlayAndEarn#Tycoon
🎤Announcement | Chat | X (Twitter) | Website | Game