Returns an observable that emits an integer at the specified time point.
More...
Go to the source code of this file.
|
template<class TimePointOrDuration > |
auto | rxcpp::sources::timer (TimePointOrDuration when) -> typename std::enable_if< detail::defer_timer< TimePointOrDuration, identity_one_worker >::value, typename detail::defer_timer< TimePointOrDuration, identity_one_worker >::observable_type >::type |
| Returns an observable that emits an integer at the specified time point. More...
|
|
template<class TimePointOrDuration , class Coordination > |
auto | rxcpp::sources::timer (TimePointOrDuration when, Coordination cn) -> typename std::enable_if< detail::defer_timer< TimePointOrDuration, Coordination >::value, typename detail::defer_timer< TimePointOrDuration, Coordination >::observable_type >::type |
| Returns an observable that emits an integer at the specified time point. More...
|
|
Returns an observable that emits an integer at the specified time point.
- Template Parameters
-
Coordination | the type of the scheduler (optional) |
- Parameters
-
when | time point when the value is emitted |
cn | the scheduler to use for scheduling the items (optional) |
- Returns
- Observable that emits an integer at the specified time point
- Sample Code
auto start = std::chrono::steady_clock::now() + std::chrono::milliseconds(1);
values.
[](int v){printf("OnNext: %d\n", v);},
[](){printf("OnCompleted\n");});
- Sample Code
auto period = std::chrono::milliseconds(1);
values.
[](int v){printf("OnNext: %d\n", v);},
[](){printf("OnCompleted\n");});
- Sample Code
auto start = scheduler.now() + std::chrono::milliseconds(1);
values.
[](int v){printf("OnNext: %d\n", v);},
[](){printf("OnCompleted\n");});
- Sample Code
auto period = std::chrono::milliseconds(1);
values.
[](int v){printf("OnNext: %d\n", v);},
[](){printf("OnCompleted\n");});
#define RXCPP_SOURCES_RX_TIMER_HPP |