MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / SetAtomVal

Method SetAtomVal

tsunami/engine/rootelem.go:218–227  ·  view source on GitHub ↗
(name string, val any)

Source from the content-addressed store, hash-verified

216}
217
218func (r *RootElem) SetAtomVal(name string, val any) error {
219 r.atomLock.Lock()
220 defer r.atomLock.Unlock()
221
222 atom, ok := r.Atoms[name]
223 if !ok {
224 return fmt.Errorf("atom %q not found", name)
225 }
226 return atom.SetVal(val)
227}
228
229func (r *RootElem) RemoveAtom(name string) {
230 r.atomLock.Lock()

Callers 2

handleConfigPostMethod · 0.45
SetMethod · 0.45

Calls 1

SetValMethod · 0.65

Tested by

no test coverage detected