| layout | default | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| title | ChangedTo | |||||||||||||||
| type_tag | function | |||||||||||||||
| groups |
|
Emits a token when the target signal was changed to a specific value.
{% highlight C++ %} template < typename D, typename V, typename S = decay::type
Events<D,Token> ChangedTo(const Signal<D,S>& target, V&& value); {% endhighlight %}
Creates a token stream that emits when target is changed and target.Value() == value.
V and S should be comparable with ==.