logoalt Hacker News

Thaxll10/11/20241 replyview on HN

It's using singleflight which was later on added to the Go std lib:

https://github.com/golang/groupcache/tree/master/singlefligh...

https://pkg.go.dev/golang.org/x/sync/singleflight


Replies

ecnahc51510/11/2024

Just a note that `x/sync` is not part of the Go std lib.