MCPcopy
hub / github.com/evcc-io/evcc / setParamSync

Method setParamSync

plugin/javascript.go:182–186  ·  view source on GitHub ↗

setParamSync is the synchronized version of setParam

(param string, val any)

Source from the content-addressed store, hash-verified

180
181// setParamSync is the synchronized version of setParam
182func (p *Javascript) setParamSync(param string, val any) error {
183 javascript.Lock()
184 defer javascript.Unlock()
185 return p.setParam(param, val)
186}
187
188var _ IntSetter = (*Javascript)(nil)
189

Callers

nothing calls this directly

Calls 3

setParamMethod · 0.95
LockFunction · 0.92
UnlockFunction · 0.92

Tested by

no test coverage detected