13#include <rpp/subscriptions/composite_subscription.hpp>
14#include <rpp/subscriptions/subscription_guard.hpp>
26 : m_subscription{ std::move(subscription) } { }
29 : m_subscription{subscription}{ }
34 return m_subscription;
37 [[nodiscard]]
bool is_subscribed()
const
42 void unsubscribe()
const
48 void do_if_subscribed_and_unsubscribe(
const auto& callable)
const
rpp::subscription_base with ability to add some dependent subscriptions as a part of this one: in cas...
Definition: composite_subscription.hpp:30
base implementation of subscriber with possibility to obtain observer's callbacks,...
Definition: subscriber_base.hpp:23
bool is_subscribed() const
indicates current status of subscription
Definition: subscription_base.hpp:51
void unsubscribe() const
initiates unsubscription process (if subscribed)
Definition: subscription_base.hpp:59
guard over subscription to auto-unsubscribe during destructor
Definition: subscription_guard.hpp:21