time.AfterFunc
standard libraryThe 832nd most-called standard-library function by production calls. Called 1,216 times across 273 modules; 818 of those run outside tests and generated code.
1% in production calls vs 2026-W37 (808 → 818)
- prod calls
- 818
- non-test, non-generated
- all calls
- 1,216
- total callsites
- modules
- 273
- distinct callers
- in loop
- 9%
- of prod calls
- in tests
- 33%
- 398 calls
- resolved
- 100%
- 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 →
- Package function100%A direct call to an exported package function, resolved by type.
who calls this
Notable callers
Production calls into AfterFunc from notable Go projects. Open one on the map to see what else it hammers.
- NATS 72 9%
- gRPC 36 4%
- Tailscale 29 4%
- Go (golang.org/x) 21 3%
- Istio 14 2%
where it's called
Callsites in the wild
12 representative callsites of 1,216, prioritizing in-loop and non-test usage. We link to source, never display it.
-
cockroachdb/cockroach @v19.2.12+incompatible
in loop - in loop
- in loop
- in loop
-
XTLS/Xray-core @v1.260327.0
in loop - in loop
- in loop
- in loop
- in loop
-
elastic/beats @v6.8.23+incompatible
in loop - in loop
- in loop
top callers
The modules that reach for it
The modules that call AfterFunc most in this snapshot.
- github.com/hashicorp/nomad1149%
- github.com/nats-io/nats-server/v2696%
- github.com/tailscale/tailscale323%
- tailscale.com323%
- github.com/grpc/grpc-go272%
siblings
More from time
The other most-called functions in this package. See all →