RxCpp
The Reactive Extensions for Native (RxCpp) is a library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operators in both C and C++.
Namespaces | Macros | Functions
rx-never.hpp File Reference

Returns an observable that never sends any items or notifications to observer. More...

#include "../rx-includes.hpp"
Include dependency graph for rx-never.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 rxcpp
 
 rxcpp::sources
 

Macros

#define RXCPP_SOURCES_RX_NEVER_HPP
 

Functions

template<class T >
auto rxcpp::sources::never () -> observable< T, detail::never< T >>
 Returns an observable that never sends any items or notifications to observer. More...
 

Detailed Description

Returns an observable that never sends any items or notifications to observer.

Template Parameters
Tthe type of (not) emitted items
Returns
Observable that never sends any items or notifications to observer.
Sample Code
auto values = rxcpp::observable<>::never<int>();
values.
take_until(std::chrono::steady_clock::now() + std::chrono::milliseconds(10)).
[](int v){printf("OnNext: %d\n", v);},
[](){printf("OnCompleted\n");});
OnCompleted

Macro Definition Documentation

◆ RXCPP_SOURCES_RX_NEVER_HPP

#define RXCPP_SOURCES_RX_NEVER_HPP