Same as the preceding overload, loading a cancel handle into event.

Synopsis

Declared in <bdlmt_eventscheduler.h>

void
scheduleRecurringEvent(
    RecurringEventHandle* event,
    bsls::TimeInterval const& interval,
    bsl::function<void()> const& callback,
    bsls::TimeInterval const& startEpochTime = bsls::TimeInterval(0));

Parameters

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

Created with MrDocs