Same as the preceding overload, loading a cancel handle into event.
Declared in <bdlmt_eventscheduler.h>
template<
class t_CLOCK,
class t_REP_TYPE,
class t_PERIOD_TYPE,
class t_DURATION>
void
scheduleRecurringEvent(
RecurringEventHandle* event,
bsl::chrono::duration<t_REP_TYPE, t_PERIOD_TYPE> const& interval,
bsl::function<void()> const& callback,
bsl::chrono::time_point<t_CLOCK, t_DURATION> const& startEpochTime = t_CLOCK::now());
| Name | Description |
|---|---|
| event | receives a handle that can cancel the event |
| interval | period between recurring dispatches |
| callback | function invoked when the event is dispatched |
| startEpochTime | absolute time of the first dispatch |