Schedule the specified callback to be dispatched at the specified time. On success, return a handle that can be used to cancel the callback (by invoking cancelEvent), or return e_INVALID_HANDLE if scheduling this event would exceed the maximum number of scheduled events for this object (see constructor). Optionally specify key to uniquely identify the event. The time is an absolute time represented as an interval from some epoch, which is detemined by the clock indicated at construction (see []Clock‐Types)).
Synopsis
Declared in <bdlmt_timereventscheduler.h>
Handle
scheduleEvent(
bsls::TimeInterval const& time,
bsl::function<void()> const& callback,
EventKey const& key = EventKey(0));
Created with MrDocs