@CodeXBotz · Post #1351 · 01.06.2022 г., 17:21
#TechUpdate 1 Minute Instagram Stories Instagram started to roll out 1minute stories https://instagram.com/stories/_u.n__k.n.o.w.n_/2851147491154648451?igshid=MDJmNzVkMjY=
Hashtags
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
Пребарај: #techupdate
@CodeXBotz · Post #1351 · 01.06.2022 г., 17:21
#TechUpdate 1 Minute Instagram Stories Instagram started to roll out 1minute stories https://instagram.com/stories/_u.n__k.n.o.w.n_/2851147491154648451?igshid=MDJmNzVkMjY=
Hashtags
@CryptoM · Post #64676 · 09.04.2026 г., 13:44
🚀 Etherscan Enhances Contract Page with New Features Etherscan has announced a revamp of its contract page, introducing an IDE-style code browser. According to Foresight News, the update includes features such as file tree navigation, multi-file tabs, contract outline jumping, and cross-file keyword search. The redesign also improves the interaction interface for reading and writing contract pages, aiming to enhance the user experience in reading and operating smart contracts. Users can now switch to full-screen mode and open matching contract codes directly in Blockscan and Ethereum Remix for editing. #Etherscan#SmartContracts#Blockchain#Ethereum#CodeBrowser#DeveloperTools#Crypto#IDE#BlockchainDevelopment#TechUpdate#ETH
@CryptoM · Post #65162 · 11.04.2026 г., 14:05
🚀 Hermes Agent Integrates Native Support for Personal WeChat Use Hermes Agent now offers native support for personal WeChat accounts, allowing users to connect easily via QR code for use in private and group chats. According to Foresight News, the adapter utilizes Tencent's official iLink Bot API, enabling comprehensive coverage of images, videos, files, and voice messages, ensuring convenient long-polling direct connections without the need for a public IP. Users can experience this by running 'hermes update'. The adapter employs Tencent's official iLink Bot API rather than reverse engineering protocols or unofficial clients. For users concerned about account bans, it is recommended to test using secondary accounts. #HermesAgent#WeChat#Tencent#iLinkBotAPI#QRcode#GroupChats#PrivateChats#LongPolling#UserExperience#TechUpdate