Connectable operators are operators that provide extra functionality for multicasting of controlling of subscription. More...
Functions | |
| template<subjects::constraint::subject_of_type< Type > TSubject> requires is_header_included<multicast_tag, TSubject> | |
| auto | observable::multicast (TSubject &&subject) const & |
| Converts ordinary observable to rpp::connectable_observable with help of provided subject. | |
| template<typename ... Args> requires is_header_included<publish_tag, Args...> | |
| auto | observable::publish () const & |
| Converts ordinary observable to rpp::connectable_observable with help of rpp::subjects::publish_subject. | |
| template<typename ... Args> requires is_header_included<ref_count_tag, Args...> | |
| auto | observable::ref_count () const & |
| Forces rpp::connectable_observable to behave like common observable. | |
Connectable operators are operators that provide extra functionality for multicasting of controlling of subscription.
|
inline |
Converts ordinary observable to rpp::connectable_observable with help of provided subject.
Connectable observable is common observable, but actually it starts emissions of items only after call "connect", "ref_count" or any other available way. Also it uses subject to multicast values to subscribers
| subject | is subject used to create rpp::connectable_observable |
|
inline |
Converts ordinary observable to rpp::connectable_observable with help of rpp::subjects::publish_subject.
Connectable observable is common observable, but actually it starts emissions of items only after call "connect", "ref_count" or any other available way. Also it uses subject to multicast values to subscribers
|
inline |
Forces rpp::connectable_observable to behave like common observable.
Connects rpp::connectable_observable on the first subscription and unsubscribes on last unsubscription