Отдельно разберём 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
Evolution X - Official | Android 16 | Nothing Phone (2)
📝 Details:
- Version: v11.4.2
- Device: #Pong
- Released: 08/01/26
⬇️ Download: ROM
📖 Changelogs: Here
🆘 Support: Discord | Telegram
🏷 Tags: #AOSP#ROM#EvoX#Official
✍️Notes:
- Use latest NOS 3 firmware! Not 4.0
- Use OrangeFox recovery to install if sideloading!
- Gapps is included, do not flash again
- Dolby is included
🏆Credits:
- Ghost and Chandu for DT
- Fabian & Ghost & HELLBOY for Glyph
- HELLBOY for Meteoric Kernel
👤 Maintainer: @Superuser1958
💬 Chat: @NothingPhone2
🔔 Updates: @NothingPhone2Updates
Evolution X - Official | Android 16 | Nothing Phone (2)
📝 Details:
- Version: v11.2
- Device: #Pong
- Released: 23/09/25
⬇️ Downloads: ROM | Recovery Image
⚙️ Flashing Instructions: Here
📖 Changelogs: Here
🆘 Support: Here
🏷 Tags: #AOSP#ROM#EvoX#Official
✍️Notes:
- Gapps is included, do not flash again
- Use latest NOS 3 firmware
- Dolby is included
🏆Credits:
- Ghost and Chandu for DT
- Fabian & HELLBOY for Glyph
- HELLBOY for Meteoric Kernel
👤 Maintainer: @Superuser1958
💬 Chat: @NothingPhone2
🔔 Updates: @NothingPhone2Updates
Evolution X - Official | Android 15 | Nothing Phone (2)
📝 Details:
- Version: v10.7
- Device: #Pong
- Released: 09/06/25
⬇️ Downloads: ROM | Recovery Image
⚙️ Flashing Instructions: Here
📖 Changelog: Here
🆘 Support: Here
🏷 Tags: #AOSP#ROM#QPR2#EvoX#Official
✍️Notes:
- Gapps is included, do not flash again!
- Use latest NOS 3 firmware
- Dolby is included
- Clean Flash is required from 10.3 or lower
🏆Credits:
- Chandu for base DT
- Ghost for Dolby and additional fixes
- Fabian & HELLBOY for Glyph
- HELLBOY for Meteoric Kernel
👤 Maintainer: @Superuser1958
🐙 Chat: @NothingPhone2
🔔 Updates: @NothingPhone2Updates
Evolution X - Official | Android 15 | Nothing Phone (2)
📝 Details:
- Version: v10.6
- Device: #Pong
- Released: 14/05/25
⬇️ Downloads: ROM | Recovery Image
⚙️ Flashing Instructions: Here
📖 Changelogs: Here
🆘 Support: Here
🏷 Tags: #AOSP#ROM#QPR2#EvoX#Official
✍️Notes:
- Gapps is included, do not flash again!
- Use latest NOS 3 firmware
- Dolby is included
- Clean Flash is required for this update
🏆Credits:
- Chandu for base DT
- Ghost for Dolby and additional fixes
- Fabian & HELLBOY for Glyph
- HELLBOY for Meteoric Kernel
👤 Maintainer: @Superuser1958
🐙 Chat: @NothingPhone2
🔔 Updates: @NothingPhone2Updates
Evolution X - Official | Android 16 | Nothing Phone (2)
📝 Details:
- Version: v11.5.2
- Device: #Pong
- Released: 03/02/26
⬇️ Download: Gapps | Vanilla
🛟 Recovery: Here
📖 Changelogs: Here
🆘 Support: Discord | Telegram
🏷 Tags: #AOSP#ROM#EvoX#Official#QPR1
✍️Notes:
- Firmware is included! (NOS 4.0)
- Sideloading/USB in recovery works as intended now
- Gapps is included, do not flash again
- Dolby is included
🏆Credits:
- Ghost and Chandu for DT
- Fabian & Ghost & HELLBOY for Glyph
- HELLBOY for Kernel base
👤 Maintainer: @Superuser1958
💬 Chat: @NothingPhone2
🔔 Updates: @NothingPhone2Updates
Evolution X - Official | Android 15 | Nothing Phone (2)
📝 Details:
- Version: v10.3
- Device: #Pong
- Released: 22/02/25
⬇️ Downloads: ROM | Recovery Image
⚙️ Flashing Instructions: Here
📖 Changelogs: Here
🆘 Support: Here
🏷 Tags: #AOSP#ROM#QPR1#EvoX#Official
✍️Notes:
- Gapps is included, do not flash again!
- Firmware is included
- Dolby is included
🏆Credits:
- Chandu for base DT
- Ghost for Dolby and additional fixes
- Fabian & HELLBOY for Glyph
- HELLBOY for Meteoric Kernel
👤 Maintainer: @Superuser1958
🐙 Chat @NothingPhone2
🔔 Updates @NothingPhone2Updates