23 static constexpr auto preferred_disposables_mode = rpp::details::observers::disposables_mode::None;
25 RPP_NO_UNIQUE_ADDRESS TObserver observer;
28 void on_next(T&& v)
const
30 observer.on_next(std::forward<T>(v));
31 observer.on_completed();
34 void on_completed()
const
36 observer.on_error(std::make_exception_ptr(
utils::not_enough_emissions{
"first() operator expects at least one emission from observable before completion"}));
39 void on_error(
const std::exception_ptr& err)
const { observer.on_error(err); }
43 bool is_disposed()
const {
return observer.is_disposed(); }