Paket context prenaša signale za preklic, roke in vrednosti omejene na zahtevo čez meje API in goroutine. To je standardni mehanizem za nadzor trajanja operacij — zlasti za preklic dela in propagacijo časovnih omejitev skozi verigo klicev funkcij.
Temeljni problem, ki ga rešuje
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.
