@yilltronics · Post #1363 · 21.11.2024 г., 11:16
Día Mundial de la Televisión #television@yilltronics
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
Пребарај: #television
@yilltronics · Post #1363 · 21.11.2024 г., 11:16
Día Mundial de la Televisión #television@yilltronics
Hashtags
@BarykinaLiubov · Post #1254 · 31.08.2024 г., 01:06
𝘾𝙚𝙣𝙩𝙧𝙖𝙡 𝙈𝙚𝙙𝙞𝙖 𝙎𝙫𝙞𝙡𝙖𝙟𝙣𝙖𝙘 🔝 6th International Project #ArtInSport 💜 in Serbia #August2024 #LiubovBarykina #RhythmicGymnastics #Dancing #Painting #Television #Serbia
@Sv3tlana7 · Post #2833 · 04.12.2024 г., 19:09
Подоспел горячий выпуск новостей о мире музыки и шоу-бизнеса “Hot Box” на телеканале “Music Box Gold”🔥💃🎶 Расписание выпусков всю неделю и ежедневно на телеканале “Music Box Gold”: в 02:00, 08:00, 14:00, 20:00.⭐️ Выпуск новостей посвящён Ольге Бузовой и ее творческим планам!🎥🔥 До встречи в прямом эфире!🥰 #MUSICBOX#musicboxgold#тв#телеведущая#TVpresenter#ольгабузова#светланатурилова#TVpresenter#television#presenter#TV#премьера
@desi_memes_funny_jokes · Post #5346 · 30.09.2024 г., 12:40
After me and my sister's fight #cartoon#family#comedy#television#sitcom#animation#hindimemes#cartoon#memes#communitylove#connectwithcommunity#humor#sisterlove#fathersday#fatherdaughter
@desi_memes_funny_jokes · Post #4970 · 07.07.2024 г., 09:46
After me and my sister's fight #cartoon#family#comedy#television#sitcom#animation#hindimemes#cartoon#memes#communitylove#connectwithcommunity#humor#sisterlove#fathersday#fatherdaughter
@venturevillagewall · Post #3441 · 19.12.2024 г., 10:24
YouTube Issues and Economic Updates 🔧 Users in Russia report ongoing issues with YouTube, marking another decrease in platform traffic, as confirmed by Google. 📊 The Russian Communications Ministry (RKN) plans to acquire data on user attempts to access blocked sites, though it already collects some relevant data. ⚙️ The Ministry of Economic Development aims to increase processing limits to enhance labor market flexibility amid personnel shortages. 📈 Predictions suggest the information security market in 2024 could grow by 30% to reach 593 billion rubles, though other estimates are lower. 📺 Yandex is negotiating with Haier, TCL, and Huawei for the installation of its OS on all their TVs supplied to Russia. 💰 AI search engine Perplexity successfully raised $500 million at a valuation of $9 billion, a significant increase from its earlier valuation of $1 billion. 🇺🇸 In the US, an investigation has been initiated against TP-Link over national security concerns, as they hold 65% of the domestic router market. #YouTube#RKN#EconomicDevelopment#MarketGrowth#InformationSecurity#Yandex#Perplexity#Funding#TPLink#NationalSecurity#Russia#TechNews#AI#Router#Television#DataPrivacy#UserExperience#TrafficIssues
@venturevillagewall · Post #3443 · 19.12.2024 г., 11:00
YouTube Issues and Economic Growth Users in Russia again report issues with YouTube, causing a traffic drop noted by Google. The Roskomnadzor is seeking data from providers on user attempts to access blocked sites, despite existing data collection measures not aiding user identification. The Ministry of Economic Development aims to raise processing limits to improve labor market flexibility amid staff shortages. The cybersecurity market is projected to grow by up to 30% in 2024, although some estimates suggest only 10-15% growth due to high interest rates and tax burdens. Yandex plans to negotiate with Haier, TCL, and Huawei to install its OS on all TVs sold in Russia. AI search engine Perplexity secures $500 million funding, raising its valuation to $9 billion, up from $1 billion in April. In the U.S., the investigation into TP-Link for potential national security threats begins, as it commands 65% of the U.S. home router market. #YouTube#Russia#InternetIssues#Roskomnadzor#LaborMarket#Cybersecurity#Growth#Yandex#AI#Funding#Perplexity#TPLink#NationalSecurity#TechNews#MarketTrends#Television#Haier#TCL#Huawei#EconomicDevelopment#VPN