#include <rpp/rpp.hpp>
#include <iostream>
int main()
{
{
std::vector<int> vals{ 1,2,3 };
rpp::source::from_iterable(vals).subscribe([](int v) {std::cout << v << " "; });
}
{
std::vector<int> vals{ 1,2,3 };
rpp::source::from_iterable<rpp::memory_model::use_shared>(vals).subscribe([](int v) {std::cout << v << " "; });
}
{
std::vector<int> vals{ 1,2,3 };
}
{
rpp::source::from_callable([]() {return 49; }).subscribe([](int v) {std::cout << v << " "; });
}
return 0;
}
scheduler which schedules execution of schedulables via queueing tasks to another thread with priorit...
Definition: new_thread_scheduler.hpp:32