When ctx.Done() Isn't Enough
As Go engineers, we've all internalized the context pattern. When an application shuts down, we propagate the cancellation, our select blocks catch <-ctx.Done(), and we return. Clean. Simple. Idiomatic.
It usually looks like this:
for {
select {
...
devgeist.com10 min read