@ThemesM8 · Post #351 · 03.09.2025 г., 13:50
Made this theme with @ThemesM8Bot✨ https://t.me/addtheme/OrangeAccentThemesM8bot @ThemesM8 #Dark#Android#Desktop#Black#Gray#Orange#Car#Theme#TelegramTheme
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
Пребарај: #telegramtheme
@ThemesM8 · Post #351 · 03.09.2025 г., 13:50
Made this theme with @ThemesM8Bot✨ https://t.me/addtheme/OrangeAccentThemesM8bot @ThemesM8 #Dark#Android#Desktop#Black#Gray#Orange#Car#Theme#TelegramTheme
@ThemesM8 · Post #352 · 01.10.2025 г., 08:23
Made this theme with @ThemesM8Bot🚘 https://t.me/addtheme/BMW_ThemesM8bot @ThemesM8 #Dark#Android#Desktop#Black#Gray#Red#Car#Theme#TelegramTheme#BMW#NavyBlue
@ThemesM8 · Post #325 · 11.04.2025 г., 18:45
🚀FINALLY! After 937 cups of coffee and a few breakdowns... 🎨@ThemesM8bot is ALIVE! Tap the bot, make a theme, flex on your chats. You're welcome 😎 #Theme#TelegramTheme#Themer#Themes#ThemeMaker#ThemeGenerator ⚠️ For now, it only works on Android!
@ThemesM8 · Post #344 · 01.07.2025 г., 18:44
˙⋆.˚𝐀𝐩𝐩𝐥𝐲 𝐓𝐡𝐞𝐦𝐞˙⋆.˚ ᴷⁱᵏⁱ'ˢ ᵈᵉˡⁱᵛᵉʳʸ #theme#telegramtheme#darktheme#dark#kiki#anime#witch#moon @arkidellatheme
@ThemesM8 · Post #316 · 10.07.2024 г., 23:48
https://t.me/addtheme/CyberGlow_ThemesM8 And finally, after a long time, I made a new theme again. I put a lot of time into this one to ensure that all the colors are correct. I even adjusted the story colors, channel statistics' colors, and more. By the way, as always, it also supports Desktop. Let's begin with a good theme. Enjoy! #Android#Desktop#AndroidTheme#DesktopTheme#Dark#CyberpunkTheme#NeonTheme#TechTheme#DarkTheme#GlowingTheme#DigitalArt#CyberArt#TechArt#TelegramTheme#TelegramThemes#CustomThemes#ThemeDesign#purple#ThemeCreator#DarkMode#TechAesthetics#CyberAesthetics#HackerStyle#FuturisticStyle#NeonLights#GlowInTheDark#DigitalAesthetics#CyberFashion#TechWear#NeonWear#HoodieStyle#LEDLights#TechAccessories#ThemeSupport#DesktopThemes#MobileThemes#CyberpunkArt#NeonVibes#GlowingEyes#FuturisticFashion#CyberGirl#LEDMask#HoodieFashion#NeonPink#NeonPurple#DarkAesthetic#CyberMask#FuturisticLook#TechnoFashion#NeonGlow#GlowingMask#SciFiArt#TechnoAesthetic#CyberBeauty#NightMode#CyberMood#DigitalFashion#CyberTech#NeonAesthetic#LEDGlow#ElectricVibes#TechWearFashion#FuturisticHoodie#NeonDrip#TechBeauty#LEDStyle#DarkFashion#CyberFashionista#GlowingTech#FutureFashion#CyberVibes#NeonDreams#HackerFashion#TechnoChic#NeonLightsFashion 🩷@ThemesM8 🩷 ⭐️ BOOST ⭐️
Hashtags