Subject which multicasts values to observers subscribed on it and sends last emitted value (or initial value) on subscribe. It contains two parts: subscriber and observable at the same time. More...
#include <behavior_subject.hpp>
Public Member Functions | |
behavior_subject (const T &initial_value, const composite_subscription &sub) | |
behavior_subject (T &&initial_value, const composite_subscription &sub) | |
behavior_subject (const T &initial_value, composite_subscription &&sub=composite_subscription{}) | |
behavior_subject (T &&initial_value, composite_subscription &&sub=composite_subscription{}) | |
T | get_value () const |
Public Member Functions inherited from rpp::subjects::details::base_subject< T, details::behavior_strategy< T > > | |
auto | get_subscriber () const |
auto | get_observable () const |
Additional Inherited Members | |
Protected Member Functions inherited from rpp::subjects::details::base_subject< T, details::behavior_strategy< T > > | |
base_subject (auto &&...args) | |
const Strategy & | get_strategy () const |
Subject which multicasts values to observers subscribed on it and sends last emitted value (or initial value) on subscribe. It contains two parts: subscriber and observable at the same time.
Each subscriber obtains only last/initial value + values which emitted after corresponding subscribe. on_error/on_completer/unsubscribe cached and provided to new subscribers if any
T | value provided by this subject |