sync.WaitGroup.Add
standard libraryThe 25th most-called standard-library method by production calls. Called 1,180 times across 61 modules; 869 of those run outside tests and generated code.
- prod calls
- 869
- non-test, non-generated
- all calls
- 1,180
- total callsites
- modules
- 61
- distinct callers
- in loop
- 26%
- of prod calls
- in tests
- 20%
- 231 calls
- resolved
- 97%
- 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 →
- Concrete method80%A method on a value whose type is known exactly.
- Embedded method17%Reached through an embedded type.
- Unresolved3%Receiver typed by a dependency outside the crawl.
who calls this
Notable callers
Production calls into WaitGroup.Add from notable Go projects. Open one on the map to see what else it hammers.
- gRPC-Go 348 40%
- HashiCorp 295 34%
- Kubernetes 295 34%
where it's called
Callsites in the wild
6 representative callsites of 1,180, prioritizing in-loop and non-test usage. We link to source, never display it.
-
k8s.io/apimachinery @v0.29.3
in loop -
gopkg.in/yaml.v3 @v1.0.0
internal/parse/reader.go:609
in loop -
k8s.io/apimachinery @v0.29.3
in loop -
gorilla/mux @v1.8.1
-
spf13/cobra @v1.8.0
-
gorilla/mux @v1.8.1
test
top callers
The modules that reach for it
The modules that call WaitGroup.Add most in this snapshot.
- k8s.io/apimachinery34229%
- github.com/spf13/cobra16414%
- github.com/gorilla/mux787%
siblings
More from sync
The other most-called members in this package. See all →