12#include <rpp/sources/fwd.hpp>
14#include <rpp/observables/observable.hpp>
18 template<constra
int::decayed_type Type>
21 using value_type = Type;
24 std::exception_ptr err{};
26 void subscribe(
const auto& obs)
const { obs.on_error(err); }
32 template<constra
int::decayed_type Type>
51 template<constra
int::decayed_type Type>
52 auto error(std::exception_ptr err)
54 return error_observable<Type>{std::move(err)};
Base class for any observable used in RPP. It handles core callbacks of observable.
Definition observable.hpp:38
auto error(std::exception_ptr err)
Creates rpp::observable that emits no items and terminates with an error.
Definition error.hpp:49
Definition disposables_strategy.hpp:29