• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include "rxcpp/rx.hpp"
2 
3 #include "rxcpp/rx-test.hpp"
4 #include "catch.hpp"
5 
6 SCENARIO("never sample"){
7     printf("//! [never sample]\n");
8     auto values = rxcpp::observable<>::never<int>();
9     values.
10         take_until(std::chrono::steady_clock::now() + std::chrono::milliseconds(10)).
11         subscribe(
__anonc48b3db10102(int v)12             [](int v){printf("OnNext: %d\n", v);},
__anonc48b3db10202()13             [](){printf("OnCompleted\n");});
14     printf("//! [never sample]\n");
15 }
16