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

Резултати

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

Пребарај: #derpfest

当前筛选 #derpfest清除筛选
Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #96 · 15.03.2024 г., 04:11

¡New build available! HOTFIX #DerpFest | #Official#diting Device:Xiaomi 12T Pro | Redmi K50 Ultra Sha256SUM: Build Date:2024-03-14 Downloads: Link |Mirror Changelog: - Fix jitter issues - improve brightness + auto brightness - improve performance and fix some fastcharge issues - Introduce optional haptic feedback everywhere - Add Custom Carrier Label & Carrier Label Placement - Add Screen off animations - Add lockscreen charging info switch - Fix battery stats not resetting - Fixup Screenshot sound - Settings: Re-organize sound settings - Settings: Add QS tile for refresh rate indicator to dev settings - ThemePicker: Add UI Styles - DerpSpace: Add missing summaries to listpreferences - DerpSpace: Disable settings for gravity and mirroring, when no pulse is enabled Notes • Gapps are included • Remebering, Don't report bugs without logs. • CTS pass by default By @TeamMEX_XDA Donate PayPal

Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #81 · 23.02.2024 г., 23:16

¡New build available! #DerpFest | #Official#diting Device:Xiaomi 12T Pro | Redmi K50 Ultra Sha256SUM:0494a40a694ff691f69401839dd683 Build Date:2024-02-23 Downloads: Link |Mirror Changelog: - BUILD HOTFIX - https://t.me/xiaomi_12tpro_updates/79 Notes • Gapps are included • Remebering, Don't report bugs without logs. • CTS pass by default By @TeamMEX_XDA Donate PayPal

Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #79 · 23.02.2024 г., 04:49

¡New build available! #DerpFest | #Official#diting Device:Xiaomi 12T Pro | Redmi K50 Ultra Sha256SUM:fcc1f00c1b95a94db388c5acadbb Build Date:2024-02-22 Downloads: Link |Mirror Changelog: - Reimplement Custom headers feature from Bootleggers - Allow to skip confirmation in biometric auth dialog - Tint app name in notifications with app icon color - Extend showing Ambient instead of fully waking to single tap gesture - Fix wakeup and long-press actions of assistant key - Gesture nav: Remove timeout setting and minor improvements - Few layout fixes for advanced reboot options - Add faster qs tile animation speeds - Fix premature short-circuit on end spring anim - Fix crash on notification icon contrast calculation - Upgrade blobs to HyperOS CN miui_DITING_OS1.0.24.1.8.DEV_8704513c97_14.0 - adjust vibration - upgrade kernel and modules to OS1.0.2.0.ULFCNXM Thnks to @Mohammadnt96 Notes • Gapps are included • Remebering, Don't report bugs without logs. • CTS pass by default By @TeamMEX_XDA Donate PayPal

Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #66 · 04.02.2024 г., 04:09

¡New build available! #DerpFest | #Official#diting Device:Xiaomi 12T Pro | Redmi K50 Ultra Sha256SUM:1ec96f10def7980fae0eb6ed2af22900e4c5138dc70a612e7c5d89fcbb0a2a48 Build Date:2024-02-03 Downloads: Link | Changelog: - Fixed miui camera issues (Still cant be open photos from the app use google photos) - Implement UDFPS animations (inside theme picker -> lockscreen) - Adjust udfps size - fix issue where rebooting to twrp or similar the device panics to fastboot - Fixed eSIM issues (now eSIM should work without more problems) - Implement parallel space - sync more stuff from derp - Change vibration effects thnks to @Mohammadnt96 Notes • Gapps are included • Remebering, Don't report bugs without logs. • CTS pass by default By @TeamMEX_XDA Donate PayPal

Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #57 · 31.01.2024 г., 19:09

¡New build available! #DerpFest | #Official#diting Device:Xiaomi 12T Pro | Redmi K50 Ultra Sha256SUM:1c0afa2bb789c3ed4645ef7cbd5301133f754c1f7e39fe8da88dc002a0c0df26 Build Date:2024-01-30 Downloads: Link | Changelog: Links Notes • Gapps are included • Remebering, Don't report bugs without logs. • CTS pass by default By @TeamMEX_XDA Donate PayPal

Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #53 · 24.01.2024 г., 15:53

¡New build available! #DerpFest | #Official#diting Device:Xiaomi 12T Pro | Redmi K50 Ultra MD5SUM:970d09393b9f120f9994f6e70e84745f Build Date:2024-01-24 Downloads: Link | Changelog: - Last derp changes - fixup thermal configurations Notes • Gapps are included • FOD Not working on gtx8_spi touch screen • Remebering, Don't report bugs without logs. • CTS pass by default • Flash hyperOS fw V816.0.23.12.11.DEV By @TeamMEX_XDA Donate PayPal

Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #46 · 03.01.2024 г., 01:51

¡New build available! #DerpFest | #Official#diting Device:Xiaomi 12T Pro | Redmi K50 Ultra MD5SUM:9160f4523ecdf942812112da9716fd3b Build Date:2024-01-02 Downloads: Link | Changelog: - sync latest source Notes • Gapps are included • FOD Not working on gtx8_spi touch screen • Remebering, Don't report bugs without logs. • CTS pass by default • Flash hyperOS fw V816.0.23.12.11.DEV By @TeamMEX_XDA Donate PayPal

Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #43 · 29.12.2023 г., 03:17

¡New build available! #DerpFest | #Official#diting Device:Xiaomi 12T Pro | Redmi K50 Ultra MD5SUM:9160f4523ecdf942812112da9716fd3b Build Date:2023-12-27 Downloads: Link | Changelog: - add missing media codecs - (WIP) Enable xiaomi vibrator effects - update carrier config from diting 14 UKQ1.230917.001 V816.0.23.12.11.DEV - Update blobs from hyperOS UKQ1.230917.001 V816.0.23.12.11.DEV - Add custom screen resolution setting Notes • Gapps are included • FOD Not working on gtx8_spi touch screen • Remebering, Don't report bugs without logs. • CTS pass by default • Flash hyperOS fw V816.0.23.12.11.DEV By @TeamMEX_XDA Donate PayPal

Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #40 · 21.12.2023 г., 06:22

¡New build available! #DerpFest | #Official#diting Device:Xiaomi 12T Pro | Redmi K50 Ultra MD5SUM:97bed4a62116ae1abcf4211b3ac9a5a2 Build Date:2023-12-20 Downloads: Link | Changelog: - Merge QPR1 (aka December security patch) - Remove OOS style clear all button toggle due to QPR1 conflicts - Switch to Yaap's impl for battery icon customizations - Switch to AOSP themepicker to fix wallpaper apply button and other small issues - Add DerpFest Updater (based on Lineage updater) - Fix for Faceunlock needing a reboot to work after registering a face model - Add optional bouncer user switcher toggle - Add option to display data disabled indicator icon - DerpSpace: Add a secure section to quick settings - DerpLauncher:Import Lawnicons - Update Gramophone prebuilt - Switch to ARMv9 and Cortex-A510 optimizations - Sepolicy enforcing Notes • Gapps are included • FOD Not working on gtx8_spi touch screen • Remebering, Don't report bugs without logs. • CTS pass by default By @TeamMEX_XDA Donate PayPal

Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #33 · 25.11.2023 г., 15:37

¡New build available! #DerpFest | #Official#diting Device:Xiaomi 12T Pro | Redmi K50 Ultra MD5SUM:5b8c26aeef4d9f418db9c4cbdfe48833 Build Date:2023-11-25 Downloads: Link | Changelog: - Fixed performance degradations - Fixed dolby atmos issues - Update props from stock - Reset FOD blobs to DITING_V14.0.10.0.TLFCNXM - Dont allow to run foreground process con CPU7 Notes • Gapps are included • FOD Not working on gtx8_spi touch screen • Remebering, Don't report bugs without logs. By @TeamMEX_XDA Donate PayPal

Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #31 · 22.11.2023 г., 05:42

¡New build available! #DerpFest | #Official#diting Device:Xiaomi 12T Pro | K50 Ultra MD5SUM:166b3c96ba79207e8e2295621661c3aa Build Date:2023-11-22 Downloads: Link | Changelog: - FOD issue should be fixed now - fixed battery styles - now fod is called again biometrics and not pixel imprint - fixed some crashed on derpspace (general is still empty) - Sync with last derp source Notes • Gapps are included • Fod not working on gtx8_spi devices • Remebering, Don't report bugs without logs. Know bugs: - Screen record - Fod on gtx8_spi - sepolicy permissive (not a bug but u know some call it as bug) By @TeamMEX_XDA Donate PayPal

Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #28 · 20.11.2023 г., 04:50

¡New build available! #DerpFest | #Official#diting Device:Xiaomi 12T Pro | K50 Ultra MD5SUM:0d85ed43a99f92be27b9fe9ae6a6e9be Build Date:2023-11-19 Downloads: Link | Changelog: - Fixed brightness issue - update advanced_sf_offsets to V816.0.10.0.UNBCNXM (SM8650) - enable gpu profiler - switch to ARMv9 - add missing props from stock - bug fixes - Update yuki kernel to 5.10.185 - Sync with last derp source Notes • Gapps are included • Fod not working on gtx8_spi devices • Remebering, Don't report bugs without logs. By @TeamMEX_XDA Donate PayPal

ПретходнаСтраница 1 од 4Следна