#include <rpp/rpp.hpp>
#include <array>
#include <iostream>
int main()
{
rpp::source::just(42, 53, 10, 1).subscribe([](
int v) { std::cout << v << std::endl; });
std::array<int, 100> expensive_to_copy_1{};
std::array<int, 100> expensive_to_copy_2{};
}
Schedules execution of schedulables via queueing tasks to the caller thread with priority to time_poi...
Definition current_thread.hpp:86
auto just(const TScheduler &scheduler, T &&item, Ts &&... items)
Creates rpp::observable that emits a particular items and completes.
Definition from.hpp:201