You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Or, instead of using `Value()` to pull the new value, callback functions can be registered to receive notifications on a change:
107
+
```C++
108
+
Observe(area, [] (int newValue) {
109
+
cout << "area changed: " << newValue << endl;
110
+
});
111
+
```
112
+
107
113
Overloaded operators for signal types allow to omit `MakeSignal` in this case for a more concise syntax:
108
114
```C++
109
115
// Lift as reactive expression - equivalent to previous example
110
116
SignalT<int> area = width * height;
111
117
```
112
118
113
-
### Event streams and Observers
119
+
### Event streams
114
120
115
121
Event streams represent flows of discrete values. They are first-class objects and can be merged, filtered, transformed or composed to more complex types:
0 commit comments