13#include <rpp/subscriptions/subscription_base.hpp>
14#include <rpp/subscriptions/details/subscription_state.hpp>
27 template<std::invocable Fn>
29 :
subscription_base{std::make_shared<state<std::decay_t<Fn>>>(std::forward<Fn>(fn))} { }
32 template<std::invocable Fn>
40 : m_fn{std::move(fn)} {}
43 void on_unsubscribe()
override
Subscription which invoke callbable during unsubscribe.
Definition: callback_subscription.hpp:25
Base implementation of subscription state used under-hood for rpp::subscription_base and its childs.
Definition: subscription_state.hpp:22
Base subscription implementation used as base class/interface and core implementation for derrived su...
Definition: subscription_base.hpp:25