[#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 `&lt;bdlmt&lowbar;eventscheduler&period;h&gt;`

Schedule `callback` at absolute time `epochTime`&period;


[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&lt;void()&gt;] const& callback);
----

[.small]#xref:BloombergLP/bdlmt/EventScheduler/scheduleEvent-05c.adoc[_» more&period;&period;&period;_]#

Schedule `callback` at the specified `epochTime`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class t&lowbar;CLOCK,
    class t&lowbar;DURATION&gt;
void
xref:BloombergLP/bdlmt/EventScheduler/scheduleEvent-034.adoc[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]#xref:BloombergLP/bdlmt/EventScheduler/scheduleEvent-034.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, loading a cancel handle into `event`&period;


[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&lt;void()&gt;] const& callback);
----

[.small]#xref:BloombergLP/bdlmt/EventScheduler/scheduleEvent-09.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, loading a cancel handle into `event`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class t&lowbar;CLOCK,
    class t&lowbar;DURATION&gt;
void
xref:BloombergLP/bdlmt/EventScheduler/scheduleEvent-035.adoc[scheduleEvent](
    xref:BloombergLP/bdlmt/EventScheduler/EventHandle.adoc[EventHandle]* event,
    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]#xref:BloombergLP/bdlmt/EventScheduler/scheduleEvent-035.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| 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
|===


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