---
title: "Asyncio Evolved: Enhanced Exception Handling with Python 3.11 TaskGroups - Junya Fukuda"
tags: PyConTW2023, 2023-organize, 2023-共筆
---
# Asyncio Evolved: Enhanced Exception Handling with Python 3.11 TaskGroups - Junya Fukuda
{%hackmd H6-2BguNT8iE7ZUrnoG1Tg %}
<iframe src=https://app.sli.do/event/82FmhiuGkmauvFCLfixYzG height=450 width=100%></iframe>
> Collaborative writing start from below
> 從這裡開始共筆
## Today's link:
https://github.com/jrfk/talk/tree/main/PyConTW2023
## Overview
* aysncio Python's async library
* Hanlding multiple tasks concurrenlty
* Useful for I/O bound
* ...
Asynchronous process seems to have unpredicatable behavior
What happens when exeption occurs?
`asyncio.TaskGroup` ([docs](https://docs.python.org/3/library/asyncio-task.html#task-groups))
* capture exceptions
* cancelling task
Python 3.11 adding the `except*` syntax to be similar to previous style ([PEP 654](https://peps.python.org/pep-0654/)).
Below is the part that speaker updated the talk/tutorial after speech
講者於演講後有更新或勘誤投影片的部份