MCPcopy
hub / github.com/CodisLabs/codis / Done

Method Done

pkg/utils/sync2/future.go:24–30  ·  view source on GitHub ↗
(key string, val interface{})

Source from the content-addressed store, hash-verified

22}
23
24func (f *Future) Done(key string, val interface{}) {
25 f.Lock()
26 defer f.Unlock()
27 f.lazyInit()
28 f.vmap[key] = val
29 f.wait.Done()
30}
31
32func (f *Future) Wait() map[string]interface{} {
33 f.wait.Wait()

Callers 15

resyncSlotMappingsMethod · 0.95
ProcessSlotActionMethod · 0.95
RefreshRedisStatsMethod · 0.95
RefreshProxyStatsMethod · 0.95
ResyncSentinelsMethod · 0.95
PlayerDoneMethod · 0.80
RunMethod · 0.80
benchSetFunction · 0.80
benchLpushFunction · 0.80
benchMgetFunction · 0.80
LookupIPTimeoutFunction · 0.80
ResolveTCPAddrTimeoutFunction · 0.80

Calls 1

lazyInitMethod · 0.95

Tested by 1

TestRequestChan3Function · 0.64