Base implementation of subscription state used under-hood for rpp::subscription_base and its childs. More...
#include <subscription_state.hpp>
Public Member Functions | |
subscription_state (const subscription_state &)=delete | |
subscription_state (subscription_state &&) noexcept=delete | |
bool | is_subscribed () const |
void | unsubscribe () |
Protected Member Functions | |
virtual void | on_unsubscribe () |
Derrived action on unsubscribe. Will be called only ONCE! | |
Base implementation of subscription state used under-hood for rpp::subscription_base and its childs.
subscription_state uses atomic_bool to track current state of the subscription and where unsubscribe should be called or not. Used as base implementation for more complicated states