HomeReferenceAlgorithm.h ⇀ OnChangedTo

OnChangedTo function

Emits a token when the target signal was changed to a specific value.

Syntax

template
<
    typename D,
    typename V,
    typename S = decay<V>::type
>
Events<D,Token> OnChangedTo(const Signal<D,S>& target, V&& value);

Semantics

Creates a token stream that emits when target is changed and target.Value() == value.

V and S should be comparable with ==.