ReactivePlusPlus
One more implementation of ReactiveX approach in C++ with care about performance and templates in mind
 
Loading...
Searching...
No Matches
rpp::details::subscription_state Class Reference

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!
 

Detailed Description

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


The documentation for this class was generated from the following file: