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. | |
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<Type>
everytime new observable passed to this operatorSubject | is template teamplate typename over Subject to be created to create corresponding connectable_observable for provided observable |
#include <rpp/operators/multicast.hpp>
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 |
#include <rpp/operators/multicast.hpp>
|
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<Type>
everytime new observable passed to this operatorSubject | is template teamplate typename over Subject to be created to create corresponding connectable_observable for provided observable |
#include <rpp/operators/publish.hpp>
|
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