Skip to content

context: Wire up Cause for most context cancels#7538

Merged
mholt merged 1 commit intomasterfrom
cancel-cause
Mar 5, 2026
Merged

context: Wire up Cause for most context cancels#7538
mholt merged 1 commit intomasterfrom
cancel-cause

Conversation

@francislavoie
Copy link
Member

I saw this article earlier today https://rednafi.com/go/context-cancellation-cause/, I figured I should point AI at our codebase to see where we could wire up causes. Most of the context cancellations we deal with are from Go stdlib though (deep in net/http and such) which we have no control over, but hopefully over time those will get cleaned up.

Assistance Disclosure

Used Copilot + Gemini 3.1 Pro

@francislavoie francislavoie requested review from WeidiDeng and mholt March 2, 2026 08:02
@francislavoie francislavoie added this to the v2.11.2 milestone Mar 3, 2026
Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Francis! Looks like an improvement, though I have not yet used this API so I had a question, but LGTM overall.

@mholt mholt merged commit 6e5e08c into master Mar 5, 2026
35 checks passed
@mholt mholt deleted the cancel-cause branch March 5, 2026 00:14
@github-actions github-actions bot mentioned this pull request Mar 6, 2026
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants