Стандартная библиотека asyncio это стандарт (начиная с Py3.4) для работы с асинхронным кодом. Но эта библиотека достаточно низкоуровневая, со своими проблемами, устаревшими подходами.
Чтобы исправить это, были созданы разные обертки и альтернативы с реализацией популярных инструментов и паттернов асинхронного программирования. Это такие библиотеки как:
- trio: улучшает корректность выполнения, не оставляя потерянных корутин при ошибках, то есть предлагает Structured Concurrency из коробки.
- curio: упрощение синтаксиса и читаемости кода, больше похоже на работу с потоками.
- anyio: универсальная обертка над asyncio или trio плюс множество вспомогательных инструментов.
anyio используется в FastAPI как основная библиотека для работы с асинхронным кодом и вызовом синхронного кода из асинхронного.
В общем, рекомендую почитать про возможности anyio, возможно вы более не будете использовать чистый asyncio в своих проектах)
Это совсем не значит что дефолтный asyncio плох, он тоже даёт достаточный для работы функционал и продолжает развиваться. Например, в версии 3.11 появились TaskGroup, с похожим на trio функционалом. Так что он тоже актуален, просто придется больше написать кода самостоятельно.
#libs#async
France 🇫🇷 Voici ce qui est reproché à Pavel #Durov:
▪️ Complicité d’administration d’une plateforme en ligne pour permettre une transaction illicite, en bande organisée ;
▪️ Refus de communiquer les informations ou documents nécessaires pour la réalisation et l'exploitation des interceptions autorisées par la loi ;
▪️ Complicité de délits et de crimes qui s’organisent sur la plateforme (trafic de stupéfiants, pédocriminalité, escroquerie) ;
▪️ Blanchiment de crimes ou délits ;
▪️ Fourniture de prestations de cryptologie visant à assurer des fonctions de confidentialité sans déclaration conforme."
@egountchibehanzinTV
Pavelusing his powers.
Pavel Durov has switched to an anonymous number and hidden his last seen time, possibly indicating that he is using some kind of stealth mode. Despite hiding his last seen status, he has viewed some stories. Additionally, his channel has now reached level 100.
#Durov#Telegram
🎧⤴
Telegram Facing Criticism? Durov’s Strong Response is Coming!
- Rumors about Telegram's issues are spreading, but they’re exaggerated.
- Problems like user counts in bots and file issues are being fixed.
- The "People Nearby" feature isn’t broken; it works when enabled.
- There are no major problems, just strategic adjustments. Pavel Durov is strengthening Telegram’s security.
- Durov is confidently addressing the challenges, particularly in France—expect a strong response.
- Pavel is ready to give the French a tough response! (Durov’s reply in the video)
- Think critically and don’t panic without reason…
Verse 1:
They say Telegram’s broke, don’t believe the hype,
Blowing up small bugs, they’re feeding you tripe,
Durov’s on the move, he’s fixing the flaws,
In the city of lights, he’s defending the cause.
Chorus:
Don’t panic, don’t fret, it’s all under control,
The samurai’s slicing through, playing his role,
No retreat, no fear, just power and might,
Durov’s revolution is taking flight.
Verse 2:
"People Nearby" they say it’s down, what a fake,
Feature’s on point, just give it a break,
Files might glitch, but it’s just the device,
Trust in the process, Durov’s advice.
Chorus:
Don’t panic, don’t fret, it’s all under control,
The samurai’s slicing through, playing his role,
No retreat, no fear, just power and might,
Durov’s revolution is taking flight.
Verse 3:
They scream and they shout, but it’s all for show,
Durov’s strategy’s tight, and it’s ready to blow,
Strengthen the weak, cut off the loose,
Telegram’s future, it’s ready to boost.
Chorus:
Don’t panic, don’t fret, it’s all under control,
The samurai’s slicing through, playing his role,
No retreat, no fear, just power and might,
Durov’s revolution is taking flight.
Bridge:
In the face of the storm, he stands tall,
Durov’s not backing down, he’s answering the call,
From Paris to beyond, the message is clear,
Telegram’s rising, there’s nothing to fear.
#Durov
#Telegram
#Ton
🎧@toncoin_rap
🌐 Последние новости и анализ будущего ToneCoin 🌐
Недавние события вокруг ареста Павла Дурова и сотрудничества Telegram с французскими властями могут иметь серьёзные последствия не только для мессенджера, но и для криптопроекта ToneCoin. Telegram начал предоставлять информацию для расследований киберпреступлений, что сигнализирует о более тесном взаимодействии с властями.
💬Однако, это лишь то, что нам известно на официальном уровне. Да, они уже ведут переговоры с властями разных стран. Также остаются и скрытые договорённости или угрозы, о которых мы можем лишь предполагать.
🔗 Как это связано с нашим прогнозом?
Ранее я говорил о двух сценариях:
1️⃣Сценарий первый: Если Дуров пойдёт на соглашение с европейскими властями и передаст контроль над ToneCoin в их руки, возможно, что глобально на монету это не повлияет. Власти могут использовать её для расширения своего влияния в странах, не контролируемых западом (например, Иран, Бразилия, СНГ). Этот сценарий становится всё более реальным в свете недавнего сотрудничества Telegram с Францией.
2️⃣Сценарий второй: Если Дуров откажется от сотрудничества с властями и будет сопротивляться их требованиям, ToneCoin может ждать делистинг и даже закрытие проекта. Недавний арест и давление усиливают вероятность этого радикального сценария.
#durov#TON#КриптоНовости
🎧⤴
Musk's X vs. Durov's Telegram: Crypto Clash of the Titans!
The rivalry between Elon Musk’s X (formerly Twitter) and Pavel Durov’s Telegram is intensifying as both platforms vie for dominance in the crypto space. While Telegram leads with decentralized features like its blockchain platform TON, X influences market trends through Musk’s posts, especially around cryptocurrencies like Dogecoin. Both platforms promote free speech but face increasing scrutiny from governments. The competition is shaping the future of crypto engagement on social media, with privacy and finance tools at the heart of the battle.
Verse 1:
Musk’s X, where the news breaks fast,
Moves markets with a tweet, Dogecoin’s blast,
Durov’s Telegram, the decentralized beast,
TON's got crypto locked, can’t be policed.
Chorus:
Crypto wars, on social feeds,
X and Telegram plant the seeds,
Freedom, finance, blockchain calls,
Who’s gon’ rise, who’s gon’ fall?
Verse 2:
Elon shouts loud, moves a crowd with ease,
But Durov’s got that blockchain key to seize,
Private chats, encrypted tight,
While Musk’s platform keeps the spotlight.
Chorus:
Crypto wars, on social feeds,
X and Telegram plant the seeds,
Freedom, finance, blockchain calls,
Who’s gon’ rise, who’s gon’ fall?
Verse 3:
X tips Bitcoin, but nothing’s set,
Telegram’s ecosystem, you can bet,
Both want the crown, but only one can lead,
In this crypto world, it’s speed we need.
Chorus:
Crypto wars, on social feeds,
X and Telegram plant the seeds,
Freedom, finance, blockchain calls,
Who’s gon’ rise, who’s gon’ fall?
Bridge:
Battle’s not just tech, it’s free speech at stake,
Government’s eyes, watching every break,
Crypto kings, fighting for the throne,
But only one will own the zone.
#Musk
#Durov
#TON
🎧@toncoin_rap
TON — LIVE: France Denies Durov Exit to the US
#Durov#France
TON — LIVE reports that France has denied Pavel Durov a temporary permit to travel to the US, considering his trip "unjustified." He remains under supervision concerning a case on non-cooperation in combating illegal content.
Source: link
@tonlines