Если запустить 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
🔥 LAST DAY of Top Blacksmiths #2! 🔥
⚒️ Top 50 Blacksmiths will share 150,000 AURA + $100 $SING! 🏆
📌 Ranking rules:
✅Leaderboard is based on Points
✅If tied, higher pot tier ranks higher
⏳ EndsFeb 5, 14:00 UTC – make your final push! 🚀
#TopBlacksmiths#AuraRewards
🎤Announcement| Mystic Garden Game |Chat| Spotlight Channel
🌟Mystic Garden is Officially Open!🌟
🎉 The wait is over—step into the magic now!
🔸AURA Launchpool Stakers: Your AURA rewards are ready!
🔸Beta Testers: Enjoy 2x AURA on your deposits and beta test reward as a special thank-you!
🔸Everyone: It’s time to explore, grow, and thrive in Mystic Garden!
Let the adventure begin! 🌱✨
Play Now: https://t.me/mystic_garden_bot/app
#MysticGarden#GameLaunch#AURARewards