Default traits describing how to read from and subscribe to an observable.
Declared in <folly/observer/Observable.h>
template<typename Observable>
struct ObservableTraits;
| Name | Description |
|---|---|
element_type | The element type produced by the observable. |
| Name | Description |
|---|---|
get | Reads the current value from the observable. |
subscribe | Subscribes a callback for value changes on the observable. |
unsubscribe | Cancels the subscription on the observable. |