|
ReactivePlusPlus
ReactiveX implementation for C++20
|
Connectable operators are operators that provide extra functionality for multicasting of controlling of subscription. More...
Functions | |
| auto | rpp::connectable_observable< OriginalObservable, Subject >::ref_count () const |
| Forces rpp::connectable_observable to behave like common observable. | |
| template<rpp::constraint::subject Subject> | |
| auto | rpp::operators::multicast (Subject &&subject) |
| Converts ordinary observable to rpp::connectable_observable with help of provided subject. | |
| template<template< typename > typename Subject = rpp::subjects::publish_subject> | |
| auto | rpp::operators::multicast () |
| Converts ordinary observable to rpp::connectable_observable with help of inline instsantiated subject of provided type. | |
| auto | rpp::operators::publish () |
| Converts ordinary observable to rpp::connectable_observable with help of inline instsantiated publish subject. | |
| auto | rpp::operators::ref_count () |
| Forces rpp::connectable_observable to behave like common observable. | |
| template<template< typename > typename Subject = rpp::subjects::publish_subject> | |
| auto | rpp::operators::share () |
| Shares single subscription to original observable between multiple observers. | |
Connectable operators are operators that provide extra functionality for multicasting of controlling of subscription.
| auto rpp::operators::multicast | ( | ) |
Converts ordinary observable to rpp::connectable_observable with help of inline instsantiated subject of provided type.
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 template teamplate typename over Subject to be created to create corresponding connectable_observable for provided observable |
| auto rpp::operators::multicast | ( | Subject && | subject | ) |
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 inline instsantiated 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
| Subject | is template teamplate typename over Subject to be created to create corresponding connectable_observable for provided observable |
|
inline |
Forces rpp::connectable_observable to behave like common observable.
Connects rpp::connectable_observable on the first subscription and unsubscribes on last unsubscription
|
inline |
Forces rpp::connectable_observable to behave like common observable.
Connects rpp::connectable_observable on the first subscription and unsubscribes on last unsubscription
| auto rpp::operators::share | ( | ) |
Shares single subscription to original observable between multiple observers.
This is a shortcut for multicast<Subject>() | ref_count(): observable is converted to rpp::connectable_observable with help of inline instantiated subject and immediately forced to behave like common observable. As a result original observable is subscribed on the first subscription and disposed on the last unsubscription, while emissions are multicasted to all observers.
| Subject | is template template typename over Subject to be created to multicast emissions, rpp::subjects::publish_subject by default |