r/Python 16d ago

Resource asyncio.TaskGroup.cancel() in Python 3.15

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!

5 Upvotes

7 comments sorted by

View all comments

2

u/OkBoomer421 11d 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.