{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreifegygipjrla5mwgjuvsgqa5trv6xpqqw4cmgvlqhcqqu6436x55q",
"uri": "at://did:plc:iu6sln2l6dttmxhkrixcfav5/app.bsky.feed.post/3mfqaaskjwns2"
},
"path": "/go/context-cancellation-cause/",
"publishedAt": "2026-02-24T00:00:00.000Z",
"site": "https://rednafi.com",
"tags": [
"Go"
],
"textContent": "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.",
"title": "What canceled my Go context?"
}