from Hacker News

Asyncio Task Cancellation Best Practices

by jasonb05 on 12/19/23, 7:33 PM with 3 comments

  • by starlevel003 on 12/19/23, 8:48 PM

    answer: use Trio (or AnyIO if you're stuck in the asyncio land) and get sane cancel mechanics built-in.
  • by andersrs on 12/19/23, 8:37 PM

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