BloombergLP::bdlmt::EventScheduler::scheduleEvent

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

Synopsis

Declared in <bdlmt_eventscheduler.h>

void
scheduleEvent(
    EventHandle* event,
    bsls::TimeInterval const& epochTime,
    bsl::function<void()> const& callback);

Parameters

NameDescription
eventreceives a handle that can cancel the event
epochTimeabsolute time at which to dispatch the callback
callbackfunction invoked when the event is dispatched