@RTenfrancais · Post #79680 · 21.04.2026 г., 09:35
🗣 La décision des États-Unis de bloquer le détroit d'Ormuz est une erreur, a déclaré #Macron. RT en français • Osez questionner !
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
Пребарај: #macron
@RTenfrancais · Post #79680 · 21.04.2026 г., 09:35
🗣 La décision des États-Unis de bloquer le détroit d'Ormuz est une erreur, a déclaré #Macron. RT en français • Osez questionner !
Hashtags
@Ultimorapolitics24 · Post #51595 · 03.01.2026 г., 19:53
🇫🇷🇻🇪 Emmanuel #Macron: "Il popolo venezuelano oggi si è liberato della dittatura di Nicolás Maduro e non può che rallegrarsene. Usurpando il potere e calpestando le libertà fondamentali, Nicolás Maduro ha gravemente leso la dignità del suo stesso popolo. La transizione imminente deve essere pacifica, democratica e rispettosa della volontà del popolo venezuelano. Auspichiamo che il presidente Edmundo González Urrutia, eletto nel 2024, possa garantire rapidamente questa transizione. Sono attualmente in contatto con i nostri partner nella regione. La Francia è pienamente mobilitata e vigile, anche per garantire la sicurezza dei propri cittadini in questi momenti di incertezza." @UltimoraPolitics24
Hashtags
@ULTIMORAPOLITICS · Post #44106 · 24.09.2023 г., 18:54
Migranti, Emmanuel #Macron: "Noi francesi facciamo la nostra parte. Abbiamo un modello sociale generoso, ma non possiamo accogliere tutta la miseria del mondo. Non possiamo lasciare soli gli italiani. La maggior parte dei migranti di Lampedusa vengono dall'Africa subsahariana, da Paesi ai quali forniamo aiuti allo sviluppo" @UltimoraPolitics
Hashtags
@ULTIMORAPOLITICS · Post #43795 · 30.06.2023 г., 13:05
🇫🇷 Disordini in Francia, Emmanuel #Macron: "I social network svolgono un ruolo significativo. Un terzo dei fermati sono giovani o giovanissimi. A volte sembra che alcuni di loro rivivano per strada i videogiochi che li hanno intossicati" @UltimoraPolitics
Hashtags
@ULTIMORAPOLITICS · Post #43794 · 30.06.2023 г., 12:56
🇫🇷 Disordini in Francia, Emmanuel #Macron: "I social network svolgono un ruolo significativo. Un terzo dei fermati sono giovani o giovanissimi. A volte sembra che alcuni di loro rivivano per strada i videogiochi che li hanno intossicati" @UltimoraPolitics
Hashtags
@ULTIMORAPOLITICS · Post #43264 · 09.04.2023 г., 15:40
#Macron afferma che l'Unione Europea deve ridurre la sua dipendenza dagli Stati Uniti ed evitare di farsi trascinare in controversie con la Cina come quella su Taiwan, che la ostacolerebbero dal realizzare una sua "autonomia strategica" e diventare una "terza superpotenza" @UltimoraPolitics
Hashtags
@ULTIMORAPOLITICS · Post #42933 · 09.02.2023 г., 10:18
Emmanuel #Macron: "La presenza del presidente ucraino Volodymyr Zelensky serve per ribadire la nostra unità e il nostro sostegno al popolo ucraino." @UltimoraPolitics
Hashtags
@ULTIMORAPOLITICS · Post #42293 · 24.11.2022 г., 16:21
Francia, aperta un'inchiesta giudiziaria per "finanziamento illecito" sulla campagna di Emmanuel #Macron nel 2017. Al il rapporto tra il presidente e McKinsey e le condizioni per l'affidamento degli appalti pubblici. @UltimoraPolitics
Hashtags
@ULTIMORAPOLITICS · Post #41964 · 23.10.2022 г., 19:21
Il presidente francese #Macron: "I rapporti tra Italia e Francia sono più importanti delle persone. Abbiamo preferito che questo incontro fosse informale, ma è importante nell'ambito dei rapporti tra Italia e Francia e per quanto riguarda l'Unione europea". @UltimoraPolitics
Hashtags
@rt_fra · Post #40894 · 08.05.2026 г., 14:02
🇫🇷Saint-Denis : le maire LFI refuse le portrait de #Macron en mairie Bally Bagayoko, maire de Saint-Denis élu sous l’étiquette La France insoumise, continue de défier Emmanuel Macron en refusant d’accrocher son portrait officiel dans sa mairie, malgré les recommandations du préfet de Seine-Saint-Denis. Ce geste exprime son mécontentement face aux inégalités sociales et à ce qu’il considère comme un manque d’action de l’État. RT en français • Osez questionner !
Hashtags
@kurash_and_Co · Post #854 · 21.01.2026 г., 23:21
🌍À Davos, Emmanuel #Macron critique le « droit du plus fort » et les dérives néocoloniales Ironie de l’histoire : c’est précisément cette logique qui a longtemps structuré l’action française à l’étranger. Colonies, franc CFA, ingérences et répression : à quoi ressemble la vie sous le colonialisme français ? Les details dans notre reportage. RT en français • Osez questionner !
Hashtags
@corrAntoine · Post #418 · 21.04.2025 г., 19:57
Emmanuel #Macrondans l'océan Indien Le président français entame une tournée de cinq jours dans l'océan Indien. Pour en parler nous avons dans le studio notre reporter Antoine Cléraux. RT en français • Osez questionner !
Hashtags