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-empty.hpp File Reference

Returns an observable that sends no items to observer and immediately completes, on the specified scheduler. More...

#include "../rx-includes.hpp"
Include dependency graph for rx-empty.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_EMPTY_HPP
 

Functions

template<class T >
auto rxcpp::sources::empty () -> decltype(from< T >())
 
template<class T , class Coordination >
auto rxcpp::sources::empty (Coordination cn) -> decltype(from< T >(std::move(cn)))
 

Detailed Description

Returns an observable that sends no items to observer and immediately completes, on the specified scheduler.

Template Parameters
Tthe type of (not) emitted items
Coordinationthe type of the scheduler (optional)
Parameters
cnthe scheduler to use for scheduling the items (optional)
Returns
Observable that sends no items to observer and immediately completes.
Sample Code\n
values.
[](int v){printf("OnNext: %d\n", v);},
[](){printf("OnCompleted\n");});
OnCompleted
Sample Code\n
values.
[](int v){printf("OnNext: %d\n", v);},
[](){printf("OnCompleted\n");});
OnCompleted

Macro Definition Documentation

◆ RXCPP_SOURCES_RX_EMPTY_HPP

#define RXCPP_SOURCES_RX_EMPTY_HPP
rxcpp::operators::as_blocking
auto as_blocking() -> detail::blocking_factory
Definition: rx-subscribe.hpp:144
rxcpp::operators::subscribe
auto subscribe(ArgN &&... an) -> detail::subscribe_factory< decltype(make_subscriber< T >(std::forward< ArgN >(an)...))>
Definition: rx-subscribe.hpp:87
rxcpp::observe_on_event_loop
observe_on_one_worker observe_on_event_loop()
Definition: rx-observe_on.hpp:323
rxcpp::observable
a source of values. subscribe or use one of the operator methods that return a new observable,...
Definition: rx-observable.hpp:478