How Go Context Cancellation Actually Propagates, and Where It Stops
Cancelling a Go context doesn't stop anything. It closes a channel and records an error, and that's all. Every goroutine below that point has to notice on its own, at the exact place where it might block. Most context bugs come from code that assumes cancellation is enforced rath…
google