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

Резултати

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

Пребарај: #phobia

当前筛选 #phobia清除筛选
Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40426 · 28.12.2025 г., 11:02

Phobia is an intense, irrational fear of something that is often not dangerous. Fear is a normal reaction to real danger or threat. Phobias cause strong anxiety that is much bigger than the actual risk and can disrupt daily life. Fear helps keep us safe, but phobias are more about worry and avoidance even when there is little or no real danger. @googlefactss #Phobia#Fear#Anxiety#MentalHealth😨⚠️

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40489 · 06.01.2026 г., 15:04

Allodoxaphobia means being very scared of what other people think. It is not an official medical condition but is similar to social anxiety, where people fear being judged or criticized. This fear can make people avoid social situations and feel very anxious. It is different from normal dislike because it causes strong fear that affects daily life. @googlefactss #Phobia#Anxiety#MentalHealth#SocialFear#Allodoxaphobia😟🧠

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40709 · 26.02.2026 г., 23:01

Ablutophobia is a fear of bathing, cleaning or washing the body. It is a real anxiety disorder. People with it may feel panic or rapid heartbeat when thinking about bathing. The fear is stronger than normal dislike and can affect daily hygiene. Treatments like therapy can help manage it. 🚿😨🛁 [Read more] @googlefactss #MentalHealth#Anxiety#Phobia#Ablutophobia#SelfCare#HealthAwareness