Subscription which invoke callbable during unsubscribe. More...
#include <callback_subscription.hpp>
Public Member Functions | |
template<std::invocable Fn> | |
callback_subscription (Fn &&fn) | |
Public Member Functions inherited from rpp::subscription_base | |
subscription_base (const subscription_base &)=default | |
subscription_base (subscription_base &&) noexcept=default | |
subscription_base & | operator= (const subscription_base &other)=default |
subscription_base & | operator= (subscription_base &&other) noexcept=default |
bool | operator== (const subscription_base &rhs) const =default |
bool | is_subscribed () const |
indicates current status of subscription | |
void | unsubscribe () const |
initiates unsubscription process (if subscribed) | |
Additional Inherited Members | |
Static Public Member Functions inherited from rpp::subscription_base | |
static subscription_base | empty () |
Protected Member Functions inherited from rpp::subscription_base | |
subscription_base (std::shared_ptr< details::subscription_state > state) | |
const std::shared_ptr< details::subscription_state > & | get_state () const |
Subscription which invoke callbable during unsubscribe.