Стандартная библиотека asyncio это стандарт (начиная с Py3.4) для работы с асинхронным кодом. Но эта библиотека достаточно низкоуровневая, со своими проблемами, устаревшими подходами.
Чтобы исправить это, были созданы разные обертки и альтернативы с реализацией популярных инструментов и паттернов асинхронного программирования. Это такие библиотеки как:
- trio: улучшает корректность выполнения, не оставляя потерянных корутин при ошибках, то есть предлагает Structured Concurrency из коробки.
- curio: упрощение синтаксиса и читаемости кода, больше похоже на работу с потоками.
- anyio: универсальная обертка над asyncio или trio плюс множество вспомогательных инструментов.
anyio используется в FastAPI как основная библиотека для работы с асинхронным кодом и вызовом синхронного кода из асинхронного.
В общем, рекомендую почитать про возможности anyio, возможно вы более не будете использовать чистый asyncio в своих проектах)
Это совсем не значит что дефолтный asyncio плох, он тоже даёт достаточный для работы функционал и продолжает развиваться. Например, в версии 3.11 появились TaskGroup, с похожим на trio функционалом. Так что он тоже актуален, просто придется больше написать кода самостоятельно.
#libs#async
🎁 Bought It on GuMerchant? Show It Off & Earn More Rewards!
In the GuMart ecosystem, a transaction isn’t just a transaction—it’s an opportunity. 🚀
✨ Just used GuPay to book a vacation on the GuMerchant Marketplace? Don’t keep the excitement to yourself. Turn it into a social moment—and get more in return.
🔗 Here are 3 clever ways to share your experience and make it rewarding:
✔️Share Your Story
Take a screenshot of your successful purchase or your real-life experience (like in the #GuGoGlobal campaign) and post it on social media. Your story inspires others and builds trust within the community.
✔️Activate the Referral Loop
Send your referral link to that friend who’s already impressed by your experience. When they join, you both earn exclusive rewards.
✔️Join Community Challenges
Post your experience in official GuMart community channels. We’re always watching for our most active members to surprise them with special prizes.
💱 This is the essence of our “virtuous cycle”—every action you take helps the ecosystem grow, and we make sure you’re rewarded for it.
💥Don’t just spend. Engage, share, and earn more!
🌐 Gumart Goes Global: GuGoGlobal Official Recap 🎬
From the streets of Paris to the shores of Cape Town, GuGoGlobal wasn’t just a campaign — it was a movement. 🕯
📌 Campaign Impact:
🌐 5 continents, 20+ cities
👥 100,000+ Gumart residents participated
🎁 $25,000+ in rewards distributed
🚀 Hundreds of check-in videos from real users
🙏 Thank you to every Gumart Resident, partner, and friend around the world who made this campaign unforgettable.
Your energy, creativity, and belief in our vision are what bring Web3 to life — city by city, step by step.💸☄️
#GuGoGlobal#Gumart
🌊 GuAsia Winner Has Arrived at Songkran. Congratulation winners!🇹🇭
From the leaderboard to the land of water fights and tradition, our GuAsia winners have officially landed in Bangkok to experience the legendary Songkran Water Festival - live and in person! 🛫💧
A round-trip ticket to Bangkok from April 13 to April 15 to experience one of the most iconic cultural events on Earth has already been sent straight to the winner’s wallet, along with a personal notification. ✈️
🏆 As part of Gumart’s biggest campaign ever, Gu Go Global, this was Asia’s turn to shine—and the energy was real.
🏁With more giveaways coming to every continent, your chance might be just around the corner!
#GuGoGlobal#GuAsia
⏳ Only 2 Days Left – GuAfrica Giveaway Ends Soon!🇿🇦
We're heading to Africa Tech Week 2025 in Cape Town - and 3 top referrers from Africa will be coming with us! ❄️
This isn’t just a tech conference - it’s where Web3 meets the real world, and where the continent’s brightest builders connect.
🎁 Prize: Entry tickets to Africa Tech Week
📍 Location: Cape Town, South Africa
🗓 Ends: June 1, 2025
🏆How to win: Climb into the Top 3 on the Africa referral leaderboard before time runs out!
This is your moment.
Let’s go, Africa - the future is yours.🎉🔼
#GuGoGlobal#GuAfrica
GuPay Mini-Game Activation: GuPay Global Check-In 🌍
💵 Crypto is meant to be used — not just held. With GuPay, every real payment puts you on the global leaderboard.
As part of Gumart’s global activation series, this mini-game rewards users who turn everyday spending into real-world proof. 🔥
🗣️ How to join:
1️⃣ Make a real transaction using GuPay (GuQR / GuCard / GuMerchant).
2️⃣ Take a screenshot or short video of your payment moment.
3️⃣ Post it on X or Telegram with hashtags #GuPayCheckIn#GuGoGlobal.
🏆 Leaderboard Rewards (Top 5 Only):
🥇 Top 1 Global User
✈️ Round-trip international flight ticket
💰 300 USDT
🎟 Exclusive Gumart experience reward
🥈 Top 2: 200 USDT
🥉 Top 3: 150 USDT
🏅 Top 4–5: 100 USDT each
🗓 Campaign Duration: January 20 – January 27
🌍Scope: Global
Use GuPay. Climb the leaderboard. Go global. 🚀
🎉 GuAmerica is LIVE – Win Tickets to Coachella with Gumart! 🇺🇸
Where Web3 meets art, music, and culture - that’s where Gumart is headed next.📈
As part of our global movement Gu Go Global, we’re taking the spirit of crypto to the heart of California, and you could be right there with us.
💳 Prize: Entry tickets to Coachella 2025 – the world’s most iconic music & arts festival
🗓Duration: April 14 – April 18
📍 How to join: Be among the Top 3 on the referral leaderboard in the Americas during this period and unlock your way in.
See you in the crowd. See you at Coachella. 📌
#GuGoGlobal#GuAmerica
Introduce GuEurope: First Giveaway is LIVE! Paris, Here We Come!
We’re giving away 3 VIP Tickets to Paris Blockchain Week - the ultimate Web3 experience in Europe! 🏰
What’s included in the VIP Ticket:
🔼Full access to all main stages & premium sessions
🥳Exclusive networking with top founders, VCs & Web3 leaders
📈Fast-track entry + VIP lounge access
🛍Exclusive VIP Dinner beneath the stunning Pyramide du Louvre.
🏆 How to win?
Climb to the Top 3 of the Europe referral leaderboard during #GuGoGlobal from April 4 to April 8💸
Let’s go, Europe. See you in Paris.
#GuEurope#GuGoGlobal#GuGiveaway
⏱ 2 DAYS LEFT — Don’t Miss This! 🚨
💥 The clock is ticking. Only 48 hours remain before our GuAsia Mini-Game officially closes.
❗️ What’s at stake?
Top 5 players on the leaderboard will secure exclusive rewards, including real-world travel experiences, not just digital prizes.
🌍 This isn’t just a game.
It’s your chance to turn activity into real movement, rewards into real journeys, and rankings into real recognition. 👀
🔥 Final push starts NOW:
1️⃣ Invite more friends
2️⃣Climb the leaderboard
3️⃣Lock in your spot
⏰ 2 days left.
Once it’s over — it’s over.
#GuGoGlobal#GuAsia#FinalCountdown
🌊 Gumart in Songkran – Thailand 🇹🇭
🌐#GuGoGlobal Campaign – Taking Web3 to the Heart of Culture!
📍 Checkpoint: Songkran Festival, Bangkok, Thailand
One of our GuAsia winners has just shared their unforgettable journey at the legendary Songkran Festival in Bangkok - after receiving their exclusive reward from the #GuGoGlobal giveaway. 😱
From vibrant street parades to joyful water fights, this was more than just a trip - it was a moment where Web3 met real-world celebration, and Gumart became part of the experience.⭐️
💡 This is what Gu Go Global is all about: bringing crypto utility to real life, through people, places, and culture.
🎉And yes - more giveaways are coming to every continent. Your city might be next.
#GuGoGlobal#GuAsia#Songkran
🎉 GuAsia Activation: Fly to Songkran Festival with Gumart!🇹🇭
As part of Gumart’s biggest-ever global campaign, Gu Go Global (April–May 2025), we’re bringing the celebration to Asia with a special giveaway!📈
✈️ Prize: Round-trip flight ticket to Bangkok, Thailand, to experience the iconic Songkran Water Festival live! 💧
🗓 Duration: April 8 - April 13
📌 How to join: Top 3 referral leaderboard in Asia will receive special prizes – including a flight to Songkran!
Be bold, be global. This is your moment. See you in Asia!🔼
#GuGoGlobal#GuAsia#SongkranFestival
🌐GuAfrica Giveaway– Win Tickets to Africa Tech Week 2025! ✨
As part of our Gu Go Global journey, we’re heading to Africa — and we want to bring you with us! 📈
We’re giving away exclusive entry tickets to Africa Tech Week 2025, one of the continent’s most impactful tech events. 🥳
🏆 Prize: Entry tickets to Africa Tech Week
📌Location: Cape Town, South Africa
🗓Duration: May 21 – June 1, 2025
👍How to join:Be among the Top 3 on the referral leaderboard in Africa during this period and claim your spot at the event!
From AI and fintech to Web3 and sustainable tech - this is where Africa’s digital future takes shape.
Let’s go, Africa. The future is yours. 👀🛍
#GuGoGlobal#GuAfrica#AfricaTechWeek2025
🥉 GuCard Champions' League – Third Place Revealed!🛍
After NYC and Korea, we now head to the Philippines!
Big congratulations to @mkddavidson, our 3rd Place Winner, who showed how easy it is to grab snacks at the supermarket or order McDonald’s - all using GuCard and GTP. 👍
You’ve won 1,000 USDT, already loaded to your GuCard!
🎥 Watch the winning video: link
GuCard is going global - and this is just the beginning!✋
#GuMinigame#GuPay#GuGoGlobal#GuCard