Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
Asyncio Task Cancellation Best Practices
(opens in new tab)
(superfastpython.com)
12 points
jasonb05
2y ago
3 comments
Share
Asyncio Task Cancellation Best Practices | Better HN
3 comments
default
newest
oldest
starlevel003
2y ago
answer: use Trio (or AnyIO if you're stuck in the asyncio land) and get sane cancel mechanics built-in.
andersrs
2y ago
I love how C# came up with this a decade ago and everyone else is slowly catching on.
feldrim
2y ago
The language features are products of "reinventing the wheel processes" in general.
j
/
k
navigate · click thread line to collapse