@borkena · Post #5746 · 26.01.2026 г., 09:09
Why Fano Rose: A Struggle Born From Witnessed Atrocity. Read. https://borkena.com/2026/01/26/why-fano-rose-a-struggle-born-from-witnessed-atrocity/#Ethiopia#Fano
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #402 · 22 дек.
Отдельно разберём TaskGroup, который пришел на замену gather в Python 3.11. Ключевые отличия ▫️create_task() возвращает объект asyncio.Task, у которого есть соответствюущие методы управления. То есть у нас больше контроля ▫️это контекстный менеджер, который гарантирует что все таски будут остановлены по выходу из контекста ▫️ошибка автоматически отменяет незавершенные задачи, ▫️except* передает нам ExceptionGroup, в котором каждую ошибку можно обработать отдельно import asyncio import random async def do_it() -> str: if random.random() < 0.1: raise ValueError('Oops') delay = random.uniform(0.5, 1.5) await asyncio.sleep(delay) return delay async def main(): try: async with asyncio.TaskGroup() as tg: for _ in range(10): tasks.append(tg.create_task(do_it())) for t in tasks: print(t.result()) except *ValueError as e: for err in e.exceptions: print(err) asyncio.run(main()) Рекомендую изучить страницу Coroutines and Tasks из документации, где представлено больше интересных примеров и механизмов - таймауты - отмена задач - создание задач из другого потока #async
Hashtags
Пребарај: #fano
@borkena · Post #5746 · 26.01.2026 г., 09:09
Why Fano Rose: A Struggle Born From Witnessed Atrocity. Read. https://borkena.com/2026/01/26/why-fano-rose-a-struggle-born-from-witnessed-atrocity/#Ethiopia#Fano
@borkena · Post #5664 · 31.12.2025 г., 18:28
የአማራ ፋኖ ያገኘውን ወርቃማ ዕድል ይጠቀምበት—ውህደት የህልውናችን መሰረት ነው https://shorturl.at/MRkXE#Ethiopia#Fano
@borkena · Post #5955 · 08.03.2026 г., 15:31
Ethiopian Rebels Allege Gov’t Artillery Shelling Killed 5, Wounded 21 Others In A Church. Read. https://borkena.com/2026/03/08/fano-ethiopian-rebels-allege-govt-artillery-shelling-killed-5-wounded-21-others-in-a-church/#Ethiopia#News#Fano
@borkena · Post #5761 · 31.01.2026 г., 19:52
Fano Forces say 200 government forces killed in West Wollo. Read more. https://borkena.com/2026/01/31/ethiopia-fano-forces-say-200-government-forces-killed-in-west-wollo/#Ethiopia#News#Fano
@borkena · Post #5697 · 05.01.2026 г., 03:47
Fano Forces claim a new military gain in North Wollo. Read more. https://borkena.com/2026/01/04/ethiopia-fano-forces-claim-a-new-military-gain-in-north-wollo/#Ethiopia#News#Fano
@borkena · Post #5565 · 16.12.2025 г., 06:08
Fano Forces Claim 253 Gov’t Soldiers Killed In Hours Long Operation. Read more. https://borkena.com/2025/12/16/ethiopia-fano-forces-claim-253-govt-soldiers-killed-in-hours-long-operation/#Ethiopia#Fano#news
@borkena · Post #5377 · 27.11.2025 г., 05:41
Fano Responds To Cruel Video Footage, Calls For An Independent Investigation. Read more. https://borkena.com/2025/11/26/fano-responds-to-cruel-video-footage-calls-for-an-independent-investigation/#Ethiopia#Fano#News
@borkena · Post #5195 · 05.11.2025 г., 05:50
Fano Says It Ambushed Government Two Military Trucks With Commando Forces. Read more. https://borkena.com/2025/11/05/ethiopia-fano-says-it-ambushed-government-two-military-trucks-with-commando-forces/#Ethiopia#Fano#News
@borkena · Post #5611 · 24.12.2025 г., 16:07
የዘር ፍጅት ወይስ የስልጣኔዎች ግጭት?” በሃሰት ትርክት ላይ የተመሰረተ አንድነት አይጸናም! https://shorturl.at/OXYDB#Ethiopia#Fano#politics
@borkena · Post #5198 · 05.11.2025 г., 17:48
Navigating the Horn’s Fault Lines: Strategic Lessons for Amhara Fano amid UAE Influence and the Tsimdo Realignment. Read. https://borkena.com/2025/11/05/ethiopia-amhara-fano-navigating-the-horns-fault-lines-strategic-lessons-for-amhara-fano-amid-uae-influence-and-the-tsimdo-realignment/#Ethiopia#politics#Fano
@borkena · Post #6025 · 15.03.2026 г., 17:43
Fano Force Graduate 2000 Elite Commando Forces. Read more. https://borkena.com/2026/03/14/ethiopia-fano-force-graduate-2000-elite-commando-forces/#Ethiopia#EthiopianNews#Fano
Hashtags
@borkena · Post #5665 · 31.12.2025 г., 18:34
ፋኖ ተባበር እንዳትሰባበር!!! https://shorturl.at/k3edV#Ethiopia#Fano#Amhara