top | item 38700363

Asyncio Task Cancellation Best Practices

12 points| jasonb05 | 2 years ago |superfastpython.com

3 comments

order
[+] starlevel003|2 years ago|reply
answer: use Trio (or AnyIO if you're stuck in the asyncio land) and get sane cancel mechanics built-in.
[+] andersrs|2 years ago|reply
I love how C# came up with this a decade ago and everyone else is slowly catching on.
[+] feldrim|2 years ago|reply
The language features are products of "reinventing the wheel processes" in general.