golang.org/x/time/rate package
Official package docs for Go's standard token-bucket rate limiter with burst control and context-aware waits.
Official package docs for Go’s standard token-bucket rate limiter with burst control and context-aware waits.
- Author: Go Authors
- Authority: primary
- Kind: package-doc
- URL: https://pkg.go.dev/golang.org/x/time/rate
What it covers
- Limiter API
- burst capacity
- context-aware waiting and reservation
Why authoritative
Official package documentation for the Go-maintained rate limiter.
Use when
- how do I use golang.org/x/time/rate
- how should burst and steady rate be configured in Go
- should I call Allow or Wait on this limiter
Keywords
- x/time/rate, rate limiter, token bucket, burst, Wait