@Rossotrudnichestvo_in_Iran · Post #2565 · 03.12.2025 г., 18:57
Learn how Russians call the ‘Moon’! 🌙 P.S. Catch more of my lessons on TikTok! #russianclasses 🔔Gateway to Russia
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
Пребарај: #russianclasses
@Rossotrudnichestvo_in_Iran · Post #2565 · 03.12.2025 г., 18:57
Learn how Russians call the ‘Moon’! 🌙 P.S. Catch more of my lessons on TikTok! #russianclasses 🔔Gateway to Russia
Hashtags
@rushousebrussels · Post #2116 · 02.10.2024 г., 06:32
Today we continue the topic of confusing emphases! You can find the previous post here. ❓And, as per our tradition, I have a question: What word pairs confused you the most when speaking Russian? Share your stories in the comments! 📸: Pavel Kuzmichev, OZ_Media, Lucy Lambriex, LauriPatterson, bymuratdeniz, David Wall, Westend61, Mariha-kitchen, stocknshares/Getty Images #russianclasses 🔔Russia Beyond
Hashtags
@rushousebrussels · Post #2110 · 29.09.2024 г., 08:27
Don’t let these words confuse you! P.S. Catch more of my lessons on YouTube! #russianclasses 🔔Russia Beyond
Hashtags
@rushousebrussels · Post #2103 · 18.09.2024 г., 09:11
Let's learn the diminutive forms for animal names! тигр -> тигрёнок медведь -> медвежонок слон -> слонёнок курица -> цыплёнок лошадь -> жеребёнок ❓Would you like to have any of these as a pet? :) P.S. Catch more of my lessons on YouTube! #russianclasses
Hashtags
@rushousebrussels · Post #2100 · 10.09.2024 г., 07:54
Привет! We already made blini and kvass - time for okroshka! You’ll find the exact amounts of the ingredients to use here. ❓Have you tried okroshka? And what would you like to cook for next time? 📷: Maria Afonina; Yulia Gusterina/Getty Images #russianclasses 🔔Russia Beyond
Hashtags
@rushousebrussels · Post #2096 · 06.09.2024 г., 14:27
What's in a Russian women's bag? Let's take a look together 😉 ❓What’s in your bag? Share below 👇 P.S. Catch more of my lessons on YouTube! #russianclasses 🔔Russia Beyond
Hashtags
@AfricavRF · Post #429 · 26.01.2024 г., 08:38
Привет, салют и здравствуйте! Today we'll learn 5 Russian greetings. Formal ones: 🇷🇺Здравствуйте! 🇬🇧Hello! 🇷🇺Приветствую! 🇬🇧Greetings! Informal: 🇷🇺Привет! 🇬🇧Hi! 🇷🇺Салют! 🇬🇧Salutations! (Literally: "firework!") Very informal and conversational: 🇷🇺Здорово! (pronounced as ‘здарова!’) 🇬🇧Hey/What's up! ❓Do you know other (unusual) Russian greetings? Drop them in the comments! P.s. watch more videos here! #russianclasses 🔔Russia Beyond
Hashtags
@rushousebrussels · Post #2085 · 27.08.2024 г., 13:19
🔊Sound on ☕ please, repeat Привет! Tired of learning Russian? Great news for you today then: we have thousands of words that are similar to English ones! Let’s start with those relating to food! Notice that the pronunciation is not always similar, so watch out for those accents! Still, learning Russian versions of the words you already know is far easier than learning absolutely new ones 🙂 That’s not the end of the list! Do you have any more examples? Drop them down in the comments! 👇🏼 Credits: Westend61, Aleksandr Kuzmin, Martin Barraud, serggn, Chris Stein, Halfdark/Getty Images Sourse: Russia Beyond https://t.me/russiabeyond/8927 #russianclasses#russianbeyond#РусскийДом#RussianHouse#Образование#КРЯ#brussels#belgium#educationrussia#RussianHouseBrussels#russianlanguagecoursesbrussels#russianlanguage#learnrussian#studyrussian