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

Резултати

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

Пребарај: #latestsoftware

当前筛选 #latestsoftware清除筛选
MikroTik.SG

@mikrotiksg · Post #314 · 30.07.2025 г., 06:56

Current MikroTik Software Release RouterOS: 7.19.4 | 6.49.18 Winbox: 3.42 / 4.0beta26 SwitcOS: 2.18 SwitchOS lite: 2.20 If you missed 7.19.3, Significantly improved Wi-Fi 6 Performance with RouterOS v7.19.3 (stable) Significantly improved Wi-Fi 6 Performance with RouterOS v7.19.3 (stable) If you've been waiting for a sign to explore MikroTik's Wi-Fi 6 solutions - this is it. With RouterOS v7.19.3, MikroTik has introduced significant improvements to 802.11ax (Wi-Fi 6) device performance. This update enhances range, stability, and overall wireless experience, making it the best time yet to deploy Wi-Fi 6 in your home, office, or enterprise setup. MikroTik is continuously working to improve AX performance across all supported MikroTik devices, and this update is a major step forward. Whether you're using a single AP or building a complex multi-device setup, you'll notice the difference. But there's more to this update: from enhanced IPv6 FastPath support to hardened RADIUS (RadSec) and smarter LTE/eSIM handling, the system is now more robust under real-world stress. For best results and security, always use the latest stable RouterOS version. Version 7.19.3 is currently our recommended release for anyone using Wi-Fi 6 hardware. #MikroTik#RouterOS#AlagasNet#LatestSoftware