12#include <rpp/sources/fwd.hpp>
14#include <rpp/observables/observable.hpp>
18 template<constra
int::decayed_type Type, constra
int::on_subscribe<Type> OnSubscribe>
21 using value_type = Type;
24 RPP_NO_UNIQUE_ADDRESS OnSubscribe subscribe;
30 template<constra
int::decayed_type Type, constra
int::on_subscribe<Type> OnSubscribe>
59 template<constra
int::decayed_type Type, constra
int::on_subscribe<Type> OnSubscribe>
60 auto create(OnSubscribe&& on_subscribe)
62 return create_observable<Type, std::decay_t<OnSubscribe>>{std::forward<OnSubscribe>(on_subscribe)};
88 template<
typename OnSubscribe, constra
int::decayed_type Type>
89 auto create(OnSubscribe&& on_subscribe)
91 return create<Type>(std::forward<OnSubscribe>(on_subscribe));
Base class for any observable used in RPP. It handles core callbacks of observable.
Definition observable.hpp:38
auto create(OnSubscribe &&on_subscribe)
Construct observable specialized with passed callback function. Most easiesest way to construct obser...
Definition create.hpp:57
Definition disposables_strategy.hpp:19