MCPcopy Index your code
hub / github.com/golang/groupcache / Do

Method Do

groupcache_test.go:378–384  ·  view source on GitHub ↗
(key string, fn func() (interface{}, error))

Source from the content-addressed store, hash-verified

376}
377
378func (g *orderedFlightGroup) Do(key string, fn func() (interface{}, error)) (interface{}, error) {
379 <-g.stage1
380 <-g.stage2
381 g.mu.Lock()
382 defer g.mu.Unlock()
383 return g.orig.Do(key, fn)
384}
385
386// TestNoDedup tests invariants on the cache size when singleflight is
387// unable to dedup calls.

Callers

nothing calls this directly

Calls 1

DoMethod · 0.65

Tested by

no test coverage detected