#include <rpp/rpp.hpp>
#include <iostream>
int main()
{
auto sub = rpp::source::just(10, 15, 20)
.observe_on(run_loop)
.subscribe([](int v) { std::cout << v << "\n"; });
while (sub.is_subscribed())
{
while (run_loop.is_any_ready_schedulable())
}
return 0;
}
scheduler which schedules execution via queueing tasks, but execution of tasks should be manually dis...
Definition: run_loop_scheduler.hpp:30