folly::observer::makeValueObserver

The returned Observer will proxy updates from the input observer, but will skip updates that contain the same (according to operator==) value even if the actual object in the update is different.

Synopsis

Declared in <folly/observer/Observer.h>

template<typename T>
Observer<T>
makeValueObserver(Observer<T> observer);

Return Value

An Observer that only updates when the value changes.

Parameters

NameDescription
observerThe Observer whose updates are proxied.