Schedule the specified callback to be dispatched at the specified epochTime truncated to microseconds. Load into the optionally specified event a handle that can be used to cancel the event (by invoking cancelEvent). The epochTime is an absolute time represented as an interval from some epoch, which is determined by the clock associated with the time point. This method guarantees that the event will occur at or after epochTime. epochTime may be in the past, in which case the event will be executed as soon as possible.
Declared in <bdlmt_eventscheduler.h>
template<
class t_CLOCK,
class t_DURATION>
void
scheduleEvent(
bsl::chrono::time_point<t_CLOCK, t_DURATION> const& epochTime,
bsl::function<void()> const& callback);