Returns an observable that sends no items to observer and immediately completes, on the specified scheduler.
More...
Go to the source code of this file.
|
template<class T > |
auto | rxcpp::sources::empty () -> decltype(from< T >()) |
| Returns an observable that sends no items to observer and immediately completes, on the specified scheduler. More...
|
|
template<class T , class Coordination > |
auto | rxcpp::sources::empty (Coordination cn) -> decltype(from< T >(std::move(cn))) |
| Returns an observable that sends no items to observer and immediately completes, on the specified scheduler. More...
|
|
Returns an observable that sends no items to observer and immediately completes, on the specified scheduler.
- Template Parameters
-
T | the type of (not) emitted items |
Coordination | the type of the scheduler (optional) |
- Parameters
-
cn | the scheduler to use for scheduling the items (optional) |
- Returns
- Observable that sends no items to observer and immediately completes.
- Sample Code
values.
[](int v){printf("OnNext: %d\n", v);},
[](){printf("OnCompleted\n");});
- Sample Code
values.
[](int v){printf("OnNext: %d\n", v);},
[](){printf("OnCompleted\n");});
#define RXCPP_SOURCES_RX_EMPTY_HPP |