[#BloombergLP-bdlmt-EventScheduler-scheduleEvent-052] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/EventScheduler.adoc[EventScheduler]::scheduleEvent :relfileprefix: ../../../ :mrdocs: `scheduleEvent` overloads == Synopses Declared in `<bdlmt_eventscheduler.h>` 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 indicated at construction (see {Supported Clock Types} in the component documentation). 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlmt/EventScheduler/scheduleEvent-05c.adoc[scheduleEvent]( xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& epochTime, xref:bsl/function-0a.adoc[bsl::function<void()>] const& callback); ---- [.small]#xref:BloombergLP/bdlmt/EventScheduler/scheduleEvent-05c.adoc[_» more..._]# 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class t_CLOCK, class t_DURATION> void xref:BloombergLP/bdlmt/EventScheduler/scheduleEvent-034.adoc[scheduleEvent]( bsl::chrono::time_point<t_CLOCK, t_DURATION> const& epochTime, xref:bsl/function-0a.adoc[bsl::function<void()>] const& callback); ---- [.small]#xref:BloombergLP/bdlmt/EventScheduler/scheduleEvent-034.adoc[_» more..._]# Same as the preceding overload, loading a cancel handle into `event`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlmt/EventScheduler/scheduleEvent-09.adoc[scheduleEvent]( xref:BloombergLP/bdlmt/EventScheduler/EventHandle.adoc[EventHandle]* event, xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& epochTime, xref:bsl/function-0a.adoc[bsl::function<void()>] const& callback); ---- [.small]#xref:BloombergLP/bdlmt/EventScheduler/scheduleEvent-09.adoc[_» more..._]# Same as the preceding overload, loading a cancel handle into `event`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class t_CLOCK, class t_DURATION> void xref:BloombergLP/bdlmt/EventScheduler/scheduleEvent-035.adoc[scheduleEvent]( xref:BloombergLP/bdlmt/EventScheduler/EventHandle.adoc[EventHandle]* event, bsl::chrono::time_point<t_CLOCK, t_DURATION> const& epochTime, xref:bsl/function-0a.adoc[bsl::function<void()>] const& callback); ---- [.small]#xref:BloombergLP/bdlmt/EventScheduler/scheduleEvent-035.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#