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

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