None
EN
Go Singleflight Melts in Your Code, Not in Your DB
[]
VictoriaMetrics: Simple & Reliable Monitoring for Everyone on VictoriaMetrics
Load ()) } // Output: // Goroutine 0: result: 90, shared: true // Goroutine 2: result: 90, shared: true // Goroutine 1: result: 90, shared: true // Goroutine 3: result: 13, shared: true // Goroutine 4: result: 13, shared: true // Function was called 2 times Load ()) } // Output: // Goroutine 0: result: 55, shared: true // Goroutine 1: result: 55, shared: true // Goroutine 2: result: 73, shared: false // Function was called 2 times WaitGroup // waits for the function execution val interface {} // result of the function call err error // error from the function call dups int // number of duplicate callers chans [] chan <- Result // channels to receive the result }