|
Aria 2.0.0
C++23 MVVM framework (C++20 minimum) — reactive, coroutine-first, ABI-layered
|
#include <effect.hpp>
Public Member Functions | |
| template<std::invocable<> Fn> | |
| Effect (Fn fn) | |
| Runs fn once eagerly (to collect its initial dependency set), then automatically re-runs it whenever any tracked read changes. | |
| Effect (const Effect &)=delete | |
| Effect (Effect &&) noexcept=default | |
| Effect & | operator= (const Effect &)=delete |
| Effect & | operator= (Effect &&) noexcept=default |
| void | stop () noexcept |
| Explicitly cancel (without waiting for destruction). | |
| bool | active () const noexcept |
| ::aria::Subscription | into_subscription () &&noexcept |
| Transfer ownership into a unified aria::Subscription, so that an Effect can be dropped into any SubscriptionBag alongside other observers (Property::on_changed, EventBus::subscribe, ...). | |
|
inlineexplicit |
Runs fn once eagerly (to collect its initial dependency set), then automatically re-runs it whenever any tracked read changes.
|
delete |
|
defaultnoexcept |
|
inlinenoexcept |
Explicitly cancel (without waiting for destruction).
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
Transfer ownership into a unified aria::Subscription, so that an Effect can be dropped into any SubscriptionBag alongside other observers (Property::on_changed, EventBus::subscribe, ...).