BloombergLP::bdlmt::EventScheduler::scheduleEvent

scheduleEvent overloads

Synopses

Declared in <bdlmt_eventscheduler.h>

Schedule callback at absolute time epochTime.

void
scheduleEvent(
    bsls::TimeInterval const& epochTime,
    bsl::function<void()> const& callback);
» more...

Schedule callback at the specified epochTime.

template<
    class t_CLOCK,
    class t_DURATION>
void
scheduleEvent(
    bsl::chrono::time_point<t_CLOCK, t_DURATION> const& epochTime,
    bsl::function<void()> const& callback);
» more...

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

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

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

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);
» more...

Parameters

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