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 слични објави

Пребарај: #maliciouscode

当前筛选 #maliciouscode清除筛选
Crypto M - Crypto News

@CryptoM · Post #65291 · 12.04.2026 г., 14:56

🚀 Security Concerns Raised Over AI Model API Proxy Services A security research team has identified malicious code injections in 26 out of over 400 unofficial AI model API proxy services examined. According to NS3.AI, the report highlights the potential risks associated with these intermediary services, which can modify AI-generated code and compromise sensitive data, including AWS keys. #security#AI#API#maliciouscode#dataprivacy#NS3AI#AWS

Crypto M - Crypto News

@CryptoM · Post #65378 · 13.04.2026 г., 03:10

🚀 AI TRENDS | University of California Study Reveals Security Risks in Third-Party LLM Routers Researchers at the University of California have identified security vulnerabilities in 26 third-party large language model (LLM) routers, which can potentially inject malicious code or steal credentials from AI agent traffic. According to NS3.AI, the study highlighted that one of these routers was able to drain Ether from a decoy wallet, although the reported financial loss remained under $50. The research paper cautioned developers who utilize AI coding agents for smart contracts or wallets, noting that private keys or seed phrases could be exposed when requests are routed through unscreened routers. #AI#securityrisks#thirdpartyLLM#maliciouscode#credentials#AIagents#UCstudy#smartcontracts#wallets#privatekeys#seedphrases#cybersecurity#ETH