13#include <rpp/sources/create.hpp>
14#include <rpp/sources/fwd.hpp>
15#include <rpp/utils/constraints.hpp>
19IMPLEMENTATION_FILE(error_tag);
21namespace rpp::observable
36template<constra
int::decayed_type Type>
37auto error(
const std::exception_ptr& err)
requires rpp::details::is_header_included<rpp::details::error_tag, Type>
39 return create<Type>([err](
const auto& sub)
auto error(const std::exception_ptr &err)
Creates rpp::specific_observable that emits no items and terminates with an error.
Definition: error.hpp:34