13#include <rpp/operators/fwd.hpp>
15#include <rpp/defs.hpp>
16#include <rpp/operators/details/strategy.hpp>
18namespace rpp::operators::details
20 template<rpp::constra
int::decayed_type LastFn>
23 template<rpp::constra
int::decayed_type T>
26 using result_type = T;
29 template<rpp::details::observables::constra
int::disposables_strategy Prev>
30 using updated_optimal_disposables_strategy =
typename Prev::template add<1>;
32 RPP_NO_UNIQUE_ADDRESS LastFn last_fn;
34 template<rpp::constra
int::decayed_type Type, rpp::constra
int::observer Observer>
38 return std::forward<Observer>(
observer);
43namespace rpp::operators
56 template<rpp::constra
int::is_nothrow_invocable LastFn>
57 auto finally(LastFn&& last_fn)
void set_upstream(const disposable_wrapper &d) noexcept
Observable calls this method to pass disposable. Observer disposes this disposable WHEN observer want...
Definition observer.hpp:49
Base class for any observer used in RPP. It handles core callbacks of observers. Objects of this clas...
Definition observer.hpp:172
Definition finally.hpp:25
Definition finally.hpp:22