Emits a token when the target signal was changed to a specific value.
template
<
typename D,
typename V,
typename S = decay<V>::type
>
Events<D,Token> OnChangedTo(const Signal<D,S>& target, V&& value);
Creates a token stream that emits when target
is changed and target.Value() == value
.
V
and S
should be comparable with ==
.