#include <rpp/rpp.hpp>
#include <iostream>
int main()
{
sub.on_next(42);
})
.subscribe([](int v) { std::cout << v << std::endl; });
int val = 42;
sub.on_next(val);
})
.subscribe([](int v) { std::cout << v << std::endl; });
}
auto create(OnSubscribe &&on_subscribe)
Construct observable specialized with passed callback function. Most easiesest way to construct obser...
Definition create.hpp:57