context.Context.Done
standard libraryThe 33rd most-called standard-library method by production calls. Called 860 times across 108 modules; 628 of those run outside tests and generated code.
10% in production calls vs 2026-06-sample (700 → 628)
- prod calls
- 628
- non-test, non-generated
- all calls
- 860
- total callsites
- modules
- 108
- distinct callers
- in loop
- 25%
- of prod calls
- in tests
- 18%
- 151 calls
- resolved
- 0%
- to a known target
resolution mix
How each call resolves
How each call was attributed. Only resolved kinds, where the target function is known, count toward the ranking. Interface dispatch and unresolved receivers are reported separately and never guessed. Read the taxonomy →
- Interface method84%Called through an interface. The runtime target may differ.
- Unresolved16%Receiver typed by a dependency outside the crawl.
who calls this
Notable callers
Production calls into Context.Done from notable Go projects. Open one on the map to see what else it hammers.
where it's called
Callsites in the wild
6 representative callsites of 860, prioritizing in-loop and non-test usage. We link to source, never display it.
-
gorilla/mux @v1.8.1
in loop -
google.golang.org/grpc @v1.62.1
in loop -
google.golang.org/grpc @v1.62.1
-
spf13/cobra @v1.8.0
-
gorilla/mux @v1.8.1
-
spf13/cobra @v1.8.0
test
top callers
The modules that reach for it
The modules that call Context.Done most in this snapshot.
- google.golang.org/grpc30936%
- github.com/gorilla/mux11413%
- github.com/spf13/cobra627%
siblings
More from context
The other most-called members in this package. See all →