Asyncio Evolved: Enhanced Exception Handling with TaskGroup in Python 3.11 - Junya Fukuda

Поделиться
HTML-код
  • Опубликовано: 29 окт 2024
  • [EuroPython 2023 - Terrace 2A on 2023-07-21]
    ep2023.europyt...
    With the release of Python 3.11 in October 2022, PEP 654 "Exception Groups and except" was accepted, and asyncio.TaskGroup() was added. This enhancement of exception and cancellation handling has allowed asyncio to evolve more flexibly, addressing the existing issues with asyncio APIs, such as insufficient cancellation and exception handling in asyncio.gather.
    In this talk, I would like to discuss the problems of existing asyncio APIs and how the newly introduced asyncio.TaskGroup() solves these issues. Attendees will learn about the improved way of handling exceptions and cancellations using asyncio.TaskGroup(), enabling them to write more efficient and robust asynchronous code with Python 3.11.
    This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License creativecommons...

Комментарии •