folly::observer::ObservableTraits

Default traits describing how to read from and subscribe to an observable.

Synopsis

Declared in <folly/observer/Observable.h>

template<typename Observable>
struct ObservableTraits;

Type Aliases

NameDescription
element_type The element type produced by the observable.

Static Member Functions

NameDescription
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.