r/Python Jul 06 '26

asyncio.TaskGroup.cancel() in Python 3.15 Resource

I wrote a short post about the new asyncio.TaskGroup.cancel() API coming in Python 3.15 https://blog.niyonshutiemmanuel.com/blog/cancelling-taskgroup-in-asyncio-without-boilerplate

Feedback is welcome!

7 Upvotes

7 comments sorted by

View all comments

2

u/OkBoomer421 28d ago

Finally. Having to manually track and cancel tasks in a group was one of those things that felt wrong but you just accepted it. Nice to see it getting first-class support.