Package singleflight provides a duplicate function call suppression mechanism.
This is a fork of Tailscale's fork of Go's singleflight package which has had several homes in the past:
- https:pkg.go.dev/tailscale.com/util/singleflight
- https:github.com/golang/go/commit/61d3b2db6292581fc07a3767ec23ec94ad6100d1
- https:github.com/golang/groupcache/tree/master/singleflight
- https:pkg.go.dev/golang.org/x/sync/singleflight
The tailscale fork adds generics.
This fork adds contexts.