@WorldNews · Post #73532 · 22.03.2026 г., 23:59
Global fuel crisis: Australians urged to work from home by Energy Minister Chris Bowen [Read FullArticle] @WorldNews#FuelCrisis#WorkFromHome#AustraliaNews
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #401 · 15 дек.
Функция asyncio.wait() это еще один способ вызвать множество асинхронных задач. Она работает в нескольких режимах. 1. Самый простой - ждем завершения всех задач async def main(): tasks = [asyncio.create_task(do_it(i)) for i in range(10)] done, pending = await asyncio.wait( tasks, return_when=asyncio.ALL_COMPLETED ) for task in done: try: print(task.result()) except Exception as e: print(e) Очень похоже на gather, но работает не так. ▫️возвращает не результаты, а два сета с объектами Task у которых можно забрать результат через task.result() если они в списке done ▫️не гарантирует порядок результатов так как оба объекта это set ▫️не выбрасывает исключение когда оно появляется, а сохраняет его в Task. Исключение появится когда попробуете забрать резултьтат. 2. Ждем завершения первой задачи, даже если там ошибка. async def main(): tasks = [asyncio.create_task(do_it(i)) for i in range(3)] done, pending = await asyncio.wait( tasks, return_when=asyncio.FIRST_COMPLETED ) # в done может быть несколько задач! for task in done: try: print(task.result()) except Exception as e: print(f"Fail: {e}") # Оставшиеся задачи в pending, как правило, нужно отменить, иначе они будут продолжать работать for task in pending: task.cancel() В сете done будут таски которые успели завершится, причем как успешно так и нет. 3. До первой ошибки. Тоже самое, но с аргументом FIRST_EXCEPTION done, pending = await asyncio.wait( tasks, return_when=asyncio.FIRST_EXCEPTION ) Функция завершается как только первая задача упадет с ошибкой. Учтите, что в любом случае done вы можете обранужить несколько задач, как с ошибками так и успешные. ↗️ Полный листинг примеров здесь #async
Hashtags
Пребарај: #fuelcrisis
@WorldNews · Post #73532 · 22.03.2026 г., 23:59
Global fuel crisis: Australians urged to work from home by Energy Minister Chris Bowen [Read FullArticle] @WorldNews#FuelCrisis#WorkFromHome#AustraliaNews
@intnewsagency · Post #8923 · 26.03.2026 г., 05:17
Asia Reimposes Covid-Like Measures Amid Fuel Crisis Amid Middle East tensions, Asian countries are reintroducing Covid-era restrictions to save fuel and electricity. The Philippines cuts government workweeks, Pakistan shifts some staff to remote work and closes schools for two weeks, while Sri Lanka declares Wednesday a holiday. Singapore and Thailand urge energy-saving by raising AC temperatures and reducing transport use. #Asia#Energy#FuelCrisis#Conservation The main news of Russia and the world ishere.
@intnewsagency · Post #9402 · 28.04.2026 г., 10:40
Nigerian Aviation Faces Fuel Crisis Amid Oil Boom In Nigeria, jet fuel prices have surged by 270%, compared to just 70% across Africa, says Air Peace CEO Allen Onyeama. Airlines are cutting routes and fleets, struggling to survive. Paradoxically, the Dangote refinery, with record profits, exports kerosene to Europe while national aviation suffers severe fuel shortages. “Businesses are literally printing money while planes wait to refuel.” #Nigeria#aviation#fuelcrisis#oil#Africa The main news of Russia and the world ishere.
@ebcnewsnow · Post #52296 · 11.03.2026 г., 16:13
የሆርሙዝ መዘጋት እና የነዳጅ ዋጋ መናር በዓለም ኢኮኖሚ ላይ የደቀነው ስጋት ****************** በአሜሪካ እና በእስራኤል ጥምረት በኢራን ላይ የተሰነዘረውን ጥቃት ተከትሎ በመካከለኛው ምሥራቅ በተከሰተው ጦርነት የሆርሙዝ የባሕር ወሽመጥ በመዘጋቱ፣ ዓለም አቀፉ የነዳጅ ገበያና ኢኮኖሚ ከፍተኛ ቀውስ ውስጥ ወድቋል። ይህንኑ ተከትሎ ከ85 በላይ ሀገራት የነዳጅ ዋጋ ጭማሪ አድርገዋል። በአሜሪካ የ20 በመቶ ጭማሪ ሲታይ፣ በእስያ ሀገራት (እንደ ቬየትናም እና ላኦስ) ከ33 እስከ 50 በመቶ የሚደርስ አስከፊ የዋጋ ንረት ተመዝግቧል። ጃፓን እና ፈረንሳይ የስትራቴጂክ የነዳጅ ክምችታቸውን ለመልቀቅ ተገድደዋል። ደቡብ ኮሪያ ከ30 ዓመታት በኋላ ለመጀመሪያ ጊዜ የነዳጅ ዋጋ የጣሪያ ገደብ አውጥታለች። የቡድን ሰባት ሀገራት የፋይናንስ ሚኒስትሮች የአቅርቦት እጥረቱን ለመታደግ አስቸኳይ ስብሰባ ተቀምጠዋል። እንደ ፓኪስታን እና ባንግላዴሽ ያሉ ሀገራት ፍጆታን ለመቀነስ ትምህርት ቤቶችን እስከመዝጋት ደርሰዋል። ቀውሱ ከነዳጅ አልፎ በምግብ ዋስትና፣ በማዳበሪያ አቅርቦት እና በኢንዱስትሪ ምርቶች (ፕላስቲክ እና ጨርቃጨርቅ) ላይ ከፍተኛ የዋጋ ጫና ፈጥሯል። የኢኮኖሚ ባለሙያዎች ሁኔታው ወደ ‘ስታግፍሌሽን’ (የዋጋ ንረትና የኢኮኖሚ መቀዝቀዝ ጥምረት) ሊያመራ እንደሚችል እና ዓለም አቀፍ የኑሮ ቀውስ ሊያስከትል እንደሚችል እያሰገነዘቡ ነው። በለሚ ታደሰ ሙሉ መረጃውን ለማንበብ እዚህ ይጫኑ #FuelCrisis#GlobalEconomy#EnergySecurity#IranWarImpact#OilPrices2026#G7Summit
@addisstandardeng · Post #21936 · 03.04.2026 г., 16:30
#Premiering_now: The Standard Signal | Ep.15: Ethiopia Under Pressure: Fuel Crisis, Global & Regional Instability, a Fragile Election | Jawar Mohammed Click here to watch: https://www.youtube.com/watch?v=HexAbPk8Dkw Ethiopia is facing mounting pressures. In Episode 15 of The Standard Signal, host Tsedale Lamma brings Jawar Mohammed to discuss the deepening fuel shortage and corruption concerns in Ethiopia, the looming fertilizer crisis and its implications for food security, and the impact of Middle East war on Ethiopia’s economy and stability. #AddisStandard#TheStandardSignal#Ethiopia#JawarMohammed#EthiopiaPolitics#Corruption#FuelCrisis#HornOfAfrica#Tigray#Amhara#Oromia#EthiopiaElection#AfricaPolitics#EthiopiaNews#AfricanPolitics#Geopolitics
@addisstandardeng · Post #21935 · 03.04.2026 г., 14:30
#Coming_UP: The Standard Signal | Ep.15: Ethiopia Under Pressure: Fuel Crisis, Global & Regional Instability, a Fragile Election | Jawar Mohammed #TsedaleLemma speaks with #JawarMohammed about the growing challenges facing Ethiopia, from global and regional tensions to domestic instability, corruption and Ethiopia’s fragile election. Premiers at: 7:30 PM EAT tonight. Subscribe to watch: https://www.youtube.com/@AddisStandard #AddisStandard#TheStandardSignal#Ethiopia#JawarMohammed#EthiopiaPolitics#Corruption#FuelCrisis#HornOfAfrica#Tigray#Amhara#Oromia#EthiopiaElection#AfricaPolitics#EthiopiaNews#AfricanPolitics#Geopolitics