context package cancellation signals, deadlines, और request-scoped values को API boundaries और goroutines के पार ले जाता है। यह operations के lifetime को नियंत्रित करने का मानक तंत्र है — खासकर काम रद्द करने और function calls की श्रृंखला के माध्यम से timeouts फैलाने के लिए।
यह जो मुख्य समस्या हल करता है
A request starts work across many goroutines/functions (DB query, API call, etc.).
If the client disconnects or a timeout hits, you want to CANCEL all that work
so goroutines don't keep running uselessly (wasting resources / leaking).
→ context propagates the "stop now" signal down the entire call chain.
