MCPcopy Create free account
hub / github.com/Shopify/goose / Get

Method Get

statetracker/tracker.go:54–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52}
53
54func (t *stateTracker) Get() interface{} {
55 t.cond.L.(*sync.RWMutex).RLock()
56 defer t.cond.L.(*sync.RWMutex).RUnlock()
57
58 return t.value
59}
60
61// Set changes the underlying value, triggers callbacks, and returns whether the value has changed
62func (t *stateTracker) Set(val interface{}) bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected