scheduleEvent overloads
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...
| Name | Description |
|---|---|
| epochTime | absolute time at which to dispatch the callback |
| callback | function invoked when the event is dispatched |
| event | receives a handle that can cancel the event |