13#include <rpp/observables/constraints.hpp>
14#include <rpp/observables/details/member_overload.hpp>
15#include <rpp/schedulers/constraints.hpp>
19struct subscribe_on_tag;
24template<constra
int::decayed_type Type, constra
int::observable_of_type<Type> TObs, schedulers::constra
int::scheduler TScheduler>
25auto subscribe_on_impl(TObs&& obs, TScheduler&& scheduler);
27template<constra
int::decayed_type Type,
typename SpecificObservable>
45 template<schedulers::constra
int::scheduler TScheduler>
46 auto subscribe_on(
const TScheduler& scheduler)
const &
requires is_header_included<subscribe_on_tag, TScheduler>
48 return subscribe_on_impl<Type>(*
static_cast<const SpecificObservable*
>(
this), scheduler);
51 template<schedulers::constra
int::scheduler TScheduler>
52 auto subscribe_on(
const TScheduler& scheduler) &&
requires is_header_included<subscribe_on_tag, TScheduler>
54 return subscribe_on_impl<Type>(std::move(*
static_cast<SpecificObservable*
>(
this)), scheduler);
auto subscribe_on(const TScheduler &scheduler) const &
OnSubscribe function for this observable will be scheduled via provided scheduler.
Definition: subscribe_on.hpp:46
Definition: member_overload.hpp:19