#include <rpp/rpp.hpp>
#include <chrono>
#include <iostream>
int main()
{
.subscribe([](int v) { std::cout << "-" << v; },
[](const std::exception_ptr&) { std::cout << "-x" << std::endl; },
[]() { std::cout << "-|" << std::endl; });
rpp::source::never<int>()
.take_until(rpp::source::error<bool>(std::make_exception_ptr(std::runtime_error{""})))
.subscribe([](int v) { std::cout << "-" << v; },
[](const std::exception_ptr&) { std::cout << "-x" << std::endl; },
[]() { std::cout << "-|" << std::endl; });
return 0;
}
Schedules execution of schedulables via queueing tasks to the caller thread with priority to time_poi...
Definition: trampoline_scheduler.hpp:41