()
| 52 | } |
| 53 | |
| 54 | func (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 |
| 62 | func (t *stateTracker) Set(val interface{}) bool { |
nothing calls this directly
no outgoing calls
no test coverage detected