ReactivePlusPlus
One more implementation of ReactiveX approach in C++ with care about performance and templates in mind
 
Loading...
Searching...
No Matches
just.cpp
#include <rpp/rpp.hpp>
#include <iostream>
#include <array>
int main()
{
rpp::source::just(42, 53, 10, 1).subscribe([](int v) { std::cout << v << std::endl; });
// Output: 42 53 10 1
std::array<int, 100> cheap_to_copy_1{};
std::array<int, 100> cheap_to_copy_2{};
rpp::source::just<rpp::memory_model::use_shared>(cheap_to_copy_1, cheap_to_copy_2).subscribe();
rpp::source::just(rpp::schedulers::new_thread{}, 42, 53).subscribe();
}
scheduler which schedules execution of schedulables via queueing tasks to another thread with priorit...
Definition: new_thread_scheduler.hpp:32