MCPcopy
hub / github.com/golang/groupcache / Do

Method Do

groupcache.go:185–185  ·  view source on GitHub ↗

Done is called when Do is done.

(key string, fn func() (interface{}, error))

Source from the content-addressed store, hash-verified

183type flightGroup interface {
184 // Done is called when Do is done.
185 Do(key string, fn func() (interface{}, error)) (interface{}, error)
186}
187
188// Stats are per-group statistics.

Callers 9

TestGetDupSuppressStringFunction · 0.65
TestGetDupSuppressProtoFunction · 0.65
TestCachingFunction · 0.65
TestCacheEvictionFunction · 0.65
TestPeersFunction · 0.65
DoMethod · 0.65
newGroupFunction · 0.65
GetMethod · 0.65
loadMethod · 0.65

Implementers 2

orderedFlightGroupgroupcache_test.go
Groupsingleflight/singleflight.go

Calls

no outgoing calls

Tested by 6

TestGetDupSuppressStringFunction · 0.52
TestGetDupSuppressProtoFunction · 0.52
TestCachingFunction · 0.52
TestCacheEvictionFunction · 0.52
TestPeersFunction · 0.52
DoMethod · 0.52