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

TGINSIGHT SIMILAR POSTS

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

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

Отдельно разберём TaskGroup, который пришел на замену gather в Python 3.11. Ключевые отличия ▫️create_task() возвращает объект asyncio.Task, у которого есть соответствюущие методы управления. То есть у нас больше контроля ▫️это контекстный менеджер, который гарантирует что все таски будут остановлены по выходу из контекста ▫️ошибка автоматически отменяет незавершенные задачи, ▫️except* передает нам ExceptionGroup, в котором каждую ошибку можно обработать отдельно import asyncio import random async def do_it() -> str: if random.random() < 0.1: raise ValueError('Oops') delay = random.uniform(0.5, 1.5) await asyncio.sleep(delay) return delay async def main(): try: async with asyncio.TaskGroup() as tg: for _ in range(10): tasks.append(tg.create_task(do_it())) for t in tasks: print(t.result()) except *ValueError as e: for err in e.exceptions: print(err) asyncio.run(main()) Рекомендую изучить страницу Coroutines and Tasks из документации, где представлено больше интересных примеров и механизмов - таймауты - отмена задач - создание задач из другого потока #async

Hashtags

Резултати

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

Пребарај: #fastboot

当前筛选 #fastboot清除筛选
Libreware

@libreware · Post #976 · 16.09.2021 г., 13:34

Android Tool Program to manage control Android devices with Fastboot and ADB Main Features: Batch and single app installation (.apk files) Disable, enable or uninstall system apps Open, force stop or clear data of your apps Receive and save logs from your device Install or boot custom recovery or wipe partitions Save apps list Always relevant links to firmware and everything you need And more https://github.com/fast-geek/Android-Tool Download - https://github.com/fast-geek/Android-Tool/releases Telegram channel - @android_tooI Telegram chat - @android_tooI_chat 4PDA thread - https://4pda.to/forum/index.php?showtopic=1000362 📡@NoGoolag📡@Libreware #adb#fastboot

Libreware

@libreware · Post #1517 · 30.10.2025 г., 12:36

How to run #ADB and #fastboot in #Termux without root to unlock #bootloader, run ADB commands, remove #bloatware, flash ROM, or even root another #Android https://www.mobile-hacker.com/2025/06/16/how-to-run-adb-and-fastboot-on-a-non-rooted-android-smartphone-using-termux/: 1. It supports debloating of various manufacturers and mobile carriers such as LG, Samsung, Xiaomi, Huawei, Oppo, Realme, Vivo, ZTE, OnePlus, Nokia, Sony, Asus, Google, Fairphone, Motorola, Tecno, Unihertz. 2. Full access to the app’s private storage — including databases, tokens, cached credentials, config files, or even offline user data. 3. Another common issue in AndroidManifest.xml is this flag: When enabled (which it is by default unless explicitly disabled), Android allows the app’s private data to be backed up via ADB — again, even on non-rooted devices. Android, use termux-adb command instead of adb https://github.com/nohajc/termux-adb Android debloater for pc and debloat lists https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation/blob/main/resources/assets/uad_lists.json #debloat