Redowan Delowar personal blog
What canceled my Go context?
How Go 1.20's WithCancelCause and Go 1.21's WithTimeoutCause let you attach a reason to context cancellation, plus a gotcha with manual cancel and the stdlib pattern that covers every path.
- Points
- 110
- HN comments
- 66
- Submissions
- 1
- Cited by
- 0 commenters
Software EngineeringProgramming Languages2026
On Hacker News
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Mar 4, 2026 | What canceled my Go context? by mweibel | 110 | 66 |