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

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #400 · 8 дек.

Три способа выполнить множество задач с asyncio Функция для примера: async def do_it(n): await asyncio.sleep(random.uniform(0.5, 1)) return n 1. Последовательный вызов async def main(): for i in range(100): result = await do_it(i) Такой вызов имеет смысл только тогда, когда результат одной задачи требуется для вызова следующей. Если они независимы, то это антипаттерн, так как аналогичен простому синхронному вызову по очереди. 2. Упорядоченный результат async def main(): tasks = [do_it(i) for i in range(100)] results = await asyncio.gather(*tasks) Выполняет корутины конкурентно и возвращает результат в виде списка. Полезен когда требуется получить результаты в том же порядке в котором задачи отправлены. 3. Результат по мере готовности tasks = [asyncio.create_task(do_it(i)) for i in range(100)] for cor in asyncio.as_completed(tasks): result = await cor Так же выполняет корутины конкурентно, но не гарантирует порядок. Результат возвращается по мере готовности, каждый отдельно. Полезен когда нужно обработать любой ответ как можно скорее. #async

Hashtags

Резултати

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

Пребарај: #upskilling

当前筛选 #upskilling清除筛选
StartupBase

@startupbaseuz · Post #5119 · 01.12.2024 г., 08:52

Together with Coursera, we are working on massive upskilling of our youth. In addition to comprehensive reforms at all levels of education, Uzbekistan will be an excellent source of affordable talent for ITES companies for the years to come. We are also fully covering all IT training and certification costs for those who have B2 level foreign languages as well as subsidizing IT training companies up to $2000 for every successful graduate employed at ITES company or up to $3000if s/he is disabled. We fully understand that for ITES companies to expand their delivery centers in Uzbekistan good demographics is not enough and therefore we invite other training companies also to use these opportunities to grow their business with us and help our youth to become more competitive in a global remote work landscape. The main goal is to equip our growing young population with the most important skills in demand by ITES exporting companies for them to succeed in their future careers. So if you are planning for the longer-term flow of affordable talent coupled with tax breaks up to 2040 look for Uzbekistan and register your ITES exporting company with IT Park through https://outsource.gov.uz #Uzbekistan#IT_Hub#Talents#Upskilling#Tax_breaks_2040

Venture Village Wall 🦄

@venturevillagewall · Post #3543 · 20.12.2024 г., 09:31

MRI Simulator Secures $3.5M Corsmed has successfully raised $3.50M to enhance its MRI simulator, which provides an affordable, realistic training solution for students and technicians. This technology allows hands-on experience for just 1% of the cost of traditional MRI scanners, expanding training opportunities significantly. #Corsmed#MRI#Simulator#Healthcare#Training#EdTech#Innovation#Financing#MedicalTraining#TechFunding#Startup#Students#Technicians#AffordableHealthcare#HandsOnTraining#SkillsDevelopment#Technology#Upskilling#AffordableTech#MedicalEducation