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

Method lazyInit

pkg/utils/sync2/future.go:14–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12}
13
14func (f *Future) lazyInit() {
15 if f.vmap == nil {
16 f.vmap = make(map[string]interface{})
17 }
18}
19
20func (f *Future) Add() {
21 f.wait.Add(1)

Callers 2

DoneMethod · 0.95
WaitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected