diff options
author | Grigoriy Chudnov <g.chudnov@gmail.com> | 2016-03-04 17:44:22 +0300 |
---|---|---|
committer | Grigoriy Chudnov <g.chudnov@gmail.com> | 2016-03-04 17:44:22 +0300 |
commit | dccee6d3525fa2f5220a3e6fadd466888f37bbf0 (patch) | |
tree | 9460eab358aca367a447e80c7bf31998434789c3 /Rx/v2/examples | |
parent | 8433dfe942088a572dba79518ba36427921d5b9f (diff) | |
download | RxCpp-dccee6d3525fa2f5220a3e6fadd466888f37bbf0.tar.gz |
add ignore_elements operator
Diffstat (limited to 'Rx/v2/examples')
-rw-r--r-- | Rx/v2/examples/doxygen/ignore_elements.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Rx/v2/examples/doxygen/ignore_elements.cpp b/Rx/v2/examples/doxygen/ignore_elements.cpp new file mode 100644 index 0000000..86fc2df --- /dev/null +++ b/Rx/v2/examples/doxygen/ignore_elements.cpp @@ -0,0 +1,15 @@ +#include "rxcpp/rx.hpp" + +#include "rxcpp/rx-test.hpp" +#include "catch.hpp" + +SCENARIO("ignore_elements sample"){ + printf("//! [ignore_elements sample]\n"); + auto values = rxcpp::observable<>::from(1, 2, 3, 4, 5).ignore_elements(); + values. + subscribe( + [](int v) { printf("OnNext: %d\n", v); }, + []() { printf("OnCompleted\n"); }); + printf("//! [ignore_elements sample]\n"); +} + |