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

Method GetAtomVal

tsunami/engine/rootelem.go:207–216  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

205}
206
207func (r *RootElem) GetAtomVal(name string) any {
208 r.atomLock.Lock()
209 defer r.atomLock.Unlock()
210
211 atom, ok := r.Atoms[name]
212 if !ok {
213 return nil
214 }
215 return atom.GetVal()
216}
217
218func (r *RootElem) SetAtomVal(name string, val any) error {
219 r.atomLock.Lock()

Callers 2

GetMethod · 0.45
SetMethod · 0.45

Calls 1

GetValMethod · 0.65

Tested by

no test coverage detected