ObserveEval evaluates an interpretable and performs per-evaluation state-tracking. This method is concurrency safe and the expectation is that the observer function will use a switch statement to determine the type of the state which has been reported back from the call.
(vars Activation, observer func(any))
| 169 | // This method is concurrency safe and the expectation is that the observer function will use |
| 170 | // a switch statement to determine the type of the state which has been reported back from the call. |
| 171 | func (oi *ObservableInterpretable) ObserveEval(vars Activation, observer func(any)) ref.Val { |
| 172 | return oi.ObserveExec(AsFrame(vars), observer) |
| 173 | } |
| 174 | |
| 175 | // ObserveExec evaluates an interpretable and performs per-evaluation state-tracking. |
| 176 | // |
nothing calls this directly
no test coverage detected