[#BloombergLP-bdlmt-EventScheduler-scheduleEvent-034]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/EventScheduler.adoc[EventScheduler]::scheduleEvent
:relfileprefix: ../../../
:mrdocs:

Schedule the specified `callback` to be dispatched at the specified `epochTime` truncated to microseconds&period; Load into the optionally specified `event` a handle that can be used to cancel the event (by invoking `cancelEvent`)&period; The `epochTime` is an absolute time represented as an interval from some epoch, which is determined by the clock associated with the time point&period; This method guarantees that the event will occur at or after `epochTime`&period; `epochTime` may be in the past, in which case the event will be executed as soon as possible&period;

== Synopsis

Declared in `&lt;bdlmt&lowbar;eventscheduler&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class t&lowbar;CLOCK,
    class t&lowbar;DURATION&gt;
void
scheduleEvent(
    bsl::chrono::time&lowbar;point&lt;t&lowbar;CLOCK, t&lowbar;DURATION&gt; const& epochTime,
    xref:bsl/function-0a.adoc[bsl::function&lt;void()&gt;] const& callback);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
