Iompraíonn an pacáiste context comharthaí cealaithe, teorainneacha ama, agus luachanna fálrainn ar iarratas trasna teorainn API agus goroutines. Is é an meicníochas caighdeánach é chun saolré oibríochtaí a rialú — go háirithe d'obair a chealú agus timeouts a scaipeadh trí bhraistíneach glaochanna feidhme.
An fhadhb bhunúsach a réitíonn sé
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.
