diff options
Diffstat (limited to 'Rx/v2/examples/doxygen/empty.cpp')
-rw-r--r-- | Rx/v2/examples/doxygen/empty.cpp | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/Rx/v2/examples/doxygen/empty.cpp b/Rx/v2/examples/doxygen/empty.cpp deleted file mode 100644 index 1ace4eb..0000000 --- a/Rx/v2/examples/doxygen/empty.cpp +++ /dev/null @@ -1,37 +0,0 @@ -#include "rxcpp/rx.hpp" - -#include "rxcpp/rx-test.hpp" -#include "catch.hpp" - -SCENARIO("empty sample"){ - printf("//! [empty sample]\n"); - auto values = rxcpp::observable<>::empty<int>(); - values. - subscribe( - [](int v){printf("OnNext: %d\n", v);}, - [](){printf("OnCompleted\n");}); - printf("//! [empty sample]\n"); -} - -SCENARIO("threaded empty sample"){ - printf("//! [threaded empty sample]\n"); - auto values = rxcpp::observable<>::empty<int>(rxcpp::observe_on_event_loop()); - values. - as_blocking(). - subscribe( - [](int v){printf("OnNext: %d\n", v);}, - [](){printf("OnCompleted\n");}); - printf("//! [threaded empty sample]\n"); -} - -SCENARIO("empty operator syntax sample"){ - using namespace rxcpp::sources; - - printf("//! [empty operator syntax sample]\n"); - auto values = empty<int>(); - values. - subscribe( - [](int v){printf("OnNext: %d\n", v);}, - [](){printf("OnCompleted\n");}); - printf("//! [empty operator syntax sample]\n"); -} |