Skip to main content

Singleflight

Singleflight is one of the Go packages that can solve that kind of problem, as described in the documentation, it provides a duplicate function call suppression mechanism.

Reference