@developmentnewsindia · Post #44353 · 03.05.2026 г., 06:51
Marshall Islands-flagged LPG tanker Sarv Shakti, carrying 46,000 tonnes of LPG for India, has crossed the Strait of Hormuz and is en route to India #Energy
Hashtags
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
Пребарај: #energy
@developmentnewsindia · Post #44353 · 03.05.2026 г., 06:51
Marshall Islands-flagged LPG tanker Sarv Shakti, carrying 46,000 tonnes of LPG for India, has crossed the Strait of Hormuz and is en route to India #Energy
Hashtags
@developmentnewsindia · Post #44334 · 02.05.2026 г., 12:10
Megha Engineering & Infrastructures Limited (MEIL) is executing the LuPech(J-18) upgrade at IOCL's Gujarat Refinery in Vadodara, expanding its capacity from 13.7 to 18 MMTPA to address rising energy demands. The project integrates an Indmax RFCC for maximizing propylene production, a Propylene Recovery Unit (PRU) for polymer-grade refining, and a Poly Propylene Unit (PPU) to enhance petrochemical production and regional energy security. #Energy
Hashtags
@developmentnewsindia · Post #44174 · 29.04.2026 г., 04:26
India crude imports average 4.4 mbpd in Apr 1–26 (−15% vs 5.2 mbpd Feb). Saudi supplies at 697 kbpd and UAE at 619 kbpd via Yanbu (7 mbpd pipeline) and Fujairah (1.7 mbpd). Oman flows rise to 101 kbpd vs 18 kbpd FY26 avg, offsetting Gulf outages. #Energy
Hashtags
@developmentnewsindia · Post #44114 · 27.04.2026 г., 06:34
India peak power demand hits record 256 GW, up from 252 GW a day earlier; prior high 250 GW (May 2024). Govt projects 271 GW peak in 2026; solar output at 657 MU. Coal units ~10 GW asked to defer maintenance amid gas shortfall of 8–10 GW. #Energy
Hashtags
@developmentnewsindia · Post #44100 · 27.04.2026 г., 03:45
India to invite bids in 3–6 months for 220 MWe BSMR-200 SMR. ₹30 crore/MW cost; ₹5,960 crore project; 60–72 months build. ₹20,000 crore Nuclear Energy Mission targets ≥5 SMRs by 2033; 100 GW nuclear capacity by 2047. Foreign bidders allowed with local partner. #energy
Hashtags
@developmentnewsindia · Post #43804 · 19.04.2026 г., 10:16
Indian-flagged crude tanker DESH GARIMA, outbound from the Persian Gulf today, is now the 11th merchant vessel observed under Indian Naval escort in the Gulf of Oman #energy
Hashtags
@developmentnewsindia · Post #43672 · 16.04.2026 г., 11:27
IEA chief says that Europe has 'maybe six weeks' of jet fuel left, says current shock is 'the largest energy crisis we have ever faced' #Energy
Hashtags
@developmentnewsindia · Post #43571 · 14.04.2026 г., 05:32
State-run HPCL wants to move 20,000 tonnes of Gas from Ust-Luga, Russia for LPG Production Source #Energy
Hashtags
@developmentnewsindia · Post #43540 · 13.04.2026 г., 04:03
2⃣ Iranian Supertankers laden with Crude have reached Indian Ports #Energy
Hashtags
@developmentnewsindia · Post #43479 · 11.04.2026 г., 19:46
Thorium Reserves by Country: IAEA #Energy
Hashtags
@developmentnewsindia · Post #43469 · 11.04.2026 г., 15:51
The India-flagged LPG vessel “Jag Vikram” has safely crossed the Strait of Hormuz, carrying ~20,400 MT of LPG cargo with 24 seafarers onboard. #Energy
Hashtags
@developmentnewsindia · Post #43418 · 09.04.2026 г., 17:53
India to launch PM-KUSUM 2 to expand solar irrigation; PM Suryaghar targets 10 mn households with ~2.7 mn installs done. Rooftop additions at 11,000–12,000/day rising to 15,000–16,000; FY26 added 55.3 GW non-fossil capacity incl. 16.4 GW distributed RE; ~40 GW PPAs pending. #Energy
Hashtags