base implementation of subscriber with possibility to obtain observer's callbacks, query subscription state, unsubscribe and etc. Each observer's callback checks for actual subscription More...
#include <subscriber_base.hpp>
Public Member Functions | |
subscriber_base (composite_subscription &&subscription=composite_subscription{}) | |
subscriber_base (const composite_subscription &subscription) | |
const composite_subscription & | get_subscription () const |
bool | is_subscribed () const |
void | unsubscribe () const |
Protected Member Functions | |
void | do_if_subscribed_and_unsubscribe (const auto &callable) const |
base implementation of subscriber with possibility to obtain observer's callbacks, query subscription state, unsubscribe and etc. Each observer's callback checks for actual subscription
Type | type of values expected by this subscriber |