Asyncio Task Cancellation Best Practices

by jasonb05on 12/19/2023, 7:33 PMwith 3 comments

by starlevel003on 12/19/2023, 8:48 PM

answer: use Trio (or AnyIO if you're stuck in the asyncio land) and get sane cancel mechanics built-in.

by andersrson 12/19/2023, 8:37 PM

I love how C# came up with this a decade ago and everyone else is slowly catching on.