Start with the supplied values, then concatenate this observable.
More...
Go to the source code of this file.
|
template<class... AN> |
auto | rxcpp::operators::start_with (AN &&...an) -> operator_factory< start_with_tag, AN... > |
| Start with the supplied values, then concatenate this observable. More...
|
|
Start with the supplied values, then concatenate this observable.
- Template Parameters
-
Value0 | ... |
ValueN | the type of sending values |
- Parameters
-
- Returns
- Observable that emits the specified items and then emits the items emitted by the source observable.
- Sample Code
values.
[](int v){printf("OnNext: %d\n", v);},
[](){printf("OnCompleted\n");});
OnNext: 1
OnNext: 2
OnNext: 3
OnNext: 10
OnNext: 11
OnNext: 12
OnCompleted
Another form of this operator, rxcpp::observable<void, void>::start_with, gets the source observable as a parameter: values.
[](int v){printf("OnNext: %d\n", v);},
[](){printf("OnCompleted\n");});
OnNext: 1
OnNext: 2
OnNext: 3
OnNext: 10
OnNext: 11
OnNext: 12
OnCompleted
#define RXCPP_OPERATORS_RX_START_WITH_HPP |