| 9 | **/ |
| 10 | |
| 11 | int main() // NOLINT(bugprone-exception-escape) |
| 12 | { |
| 13 | //! [as_blocking] |
| 14 | rpp::source::just(1) |
| 15 | | rpp::operators::delay(std::chrono::seconds{1}, rpp::schedulers::new_thread{}) // <-- emit from another thread with delay |
| 16 | | rpp::operators::as_blocking() |
| 17 | | rpp::operators::subscribe([](int) {}, []() { std::cout << "COMPLETED" << std::endl; }); |
| 18 | std::cout << "done" << std::endl; |
| 19 | // output: COMPLETED done |
| 20 | //! [as_blocking] |
| 21 | } |
nothing calls this directly
no test coverage detected