30 [[nodiscard]]
bool is_subscribed()
const
32 return m_is_subscribed.load();
37 if (m_is_subscribed.exchange(
false))
48 std::atomic_bool m_is_subscribed{
true};
Base implementation of subscription state used under-hood for rpp::subscription_base and its childs.
Definition: subscription_state.hpp:22
virtual void on_unsubscribe()
Derrived action on unsubscribe. Will be called only ONCE!
Definition: subscription_state.hpp:45