tractor icon indicating copy to clipboard operation
tractor copied to clipboard

idea: an `ActorCancelled(ContextCancelled)` exc type for better OoB cancelled handling

Open goodboy opened this issue 5 months ago • 0 comments

Per recent testing effort, issue-docs drafting and generally ranting in the trio matrix room 🫣 here is the recent content driving this idea,

  • #399 starts dedicated testing around such scenarios
  • #400 attempts to justify the need for more then just trio.Cancelled
  • #391 demos why trio.Cancelled and so called "exception masking" can be problematic in a distributed system where error/cancel relay is important for distributed-sys feats.

New supporting feats in trio we should try here

With release 0.31.0 we get a new Cancelled.reason: str which can be set at the .cancel(reason) call,

goodboy avatar Sep 12 '25 15:09 goodboy