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

Synopsis

Declared in <bdlmt_eventscheduler.h>

template<
    class t_CLOCK,
    class t_DURATION>
void
scheduleEvent(
    EventHandle* event,
    bsl::chrono::time_point<t_CLOCK, t_DURATION> const& epochTime,
    bsl::function<void()> const& callback);

Parameters

Name

Description

event

receives a handle that can cancel the event

epochTime

absolute time at which to dispatch the callback

callback

function invoked when the event is dispatched

Created with MrDocs