Prompt Refactor

Go Context Propagation

Thread context.Context through call chains for cancellation and deadlines.

goconcurrency
Insert label Context Propagation
Prompt

Add proper context propagation to this Go code. Pass context.Context as the first parameter through the call chain, respect cancellation signals, set appropriate timeouts and deadlines, and use context values only for request-scoped data (not function parameters).

Add this to your Facet Inserts in Crystl for one-click access.

Get Crystl