LC Leo Cavalcante
Home Archive Tags Search RSS 🇧🇷 PT-BR 🇺🇸 EN

Term

Debugging

May 18, 2026 · 6 min read · go, context, concurrency

When Context Betrays You: Deriving Contexts for Optional Operations in Go

In Go, context.Context is the standard mechanism for propagating cancellation, deadlines, and values across Goroutines and function calls. But passing context forward has a subtle trap.

Copyright (c) 2026 Leo Cavalcante

GitHub LinkedIn X (Twitter) Sitemap