TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

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

Резултати

Пронајдени 4 слични објави

Пребарај: #videoediting

当前筛选 #videoediting清除筛选
Alexa Mods

@itsmealexaliza · Post #1148 · 14.03.2025 г., 17:56

🔥 MODDED APK | Unlocked Premium Features | No Watermark 🔹 App Name: KineMaster 🔹 Version: 7.5.18.3415 🔹 Architecture: arm64-v8a 🔹 Mod Type: Premium Unlocked 🚀 Features: ✅ Premium Unlocked ✅ No Watermark ✅ No Ads ✅ Full Export Support ✅ High-Quality Video Editing 👨‍💻 Modders Info: 💡 Special Thanks & Credits : 🔸 AbhiTheM0dder 🔸 AlexLiza 🔸 GolderBot 🔸 Guess Me ⚠ Warning: This modded version is for educational purposes only. Please use the official version from the Google Play Store for professional work and to support the developers. 📥 Official Play Store Link: [🔗 Get KineMaster from Google Play] #KineMaster#VideoEditing#PremiumMod#APK#AlexLiza#AbhiTheM0dder#GolderBot#GuessMe

ВЕРШИНИН

@neuro_ver · Post #95 · 05.11.2024 г., 15:44

Допилил нашу прогулку по Парижу. Сильно не накидываете. Но критика одобряется. #Париж#Путешествие#Видеограф#Монтаж#Paris#Travel#EiffelTower#VideoEditing#Filmmaking

Venture Village Wall 🦄

@venturevillagewall · Post #4339 · 08.03.2025 г., 13:00

Top 5 Insights from Trendoscope Lab 1️⃣ a16z's new report reveals top B2C AI apps by traffic differ from revenue leaders like photo and video editors. Read more 2️⃣ Google launches AI Mode with Gemini, initially for Google One subscribers, enhancing AI SEO relevance. Details here 3️⃣ Short drama apps surge with 221% annual growth in downloads, affecting traditional streamers like Netflix and Disney+ that declined by 35%. Insight found here 4️⃣ Google and Meta enable developers to access cameras on XR devices, easing previous privacy restrictions. More info and here 5️⃣ Google enhances Android widget visibility with new filters and dedicated pages. Learn more #AI#Google#Tech#Streaming#XR#Investments#B2C#Apps#VideoEditing#Photos#Dramas#SEO#Privacy#Android#Widgets#Investing#VC#a16z#Trends#Innovation

Venture Village Wall 🦄

@venturevillagewall · Post #3348 · 18.12.2024 г., 12:06

AI Video Editor Raises $500K Diffusion Studio has secured $500K in funding as of December 4, 2024. Their AI Video Editor simplifies video editing with advanced features such as Magic Cut, Text-Based Editing, and Instant Auto-Captioning, catering to creators and businesses aiming to enhance their video production efficiency. #AI#VideoEditing#Funding#Technology#Creators#Influencers#Business#Automation#Software#Innovation#EditingTools#VideoProduction#TextBasedEditing#AutoCaptioning#Workflow#Engagement#Professional#ContentCreation#Creativity#Efficiency