[#BloombergLP-bdlmt-TimerEventScheduler-rescheduleEvent-06]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/TimerEventScheduler.adoc[TimerEventScheduler]::rescheduleEvent
:relfileprefix: ../../../
:mrdocs:

`rescheduleEvent` overloads

== Synopses

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

Reschedule the event having the specified `handle` at the specified `newTime`&period; Optionally use the specified `key` to uniquely identify the event&period; If the optionally specified `wait` is true, then ensure that the event having the `handle` (if it is valid) is either successfully rescheduled or dispatched before the call returns&period; Return 0 on successful reschedule, and a non&hyphen;zero value if the `handle` is invalid _or_ if the event has already been dispatched _or_ if the event has not yet been dispatched but will soon be dispatched&period; If this method is being invoked from the dispatcher thread then the `wait` is ignored to avoid deadlock&period; The `newTime` is an absolute time represented as an interval from some epoch, which is detemined by the clock indicated at construction (see &lsqb;&rsqb;Clock&hyphen;Types))&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/bdlmt/TimerEventScheduler/rescheduleEvent-03.adoc[rescheduleEvent](
    xref:BloombergLP/bdlmt/TimerEventScheduler/Handle.adoc[Handle] handle,
    xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& newTime,
    bool wait = false);
----

[.small]#xref:BloombergLP/bdlmt/TimerEventScheduler/rescheduleEvent-03.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, with the specified `key`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/bdlmt/TimerEventScheduler/rescheduleEvent-0c.adoc[rescheduleEvent](
    xref:BloombergLP/bdlmt/TimerEventScheduler/Handle.adoc[Handle] handle,
    xref:BloombergLP/bdlmt/TimerEventScheduler/EventKey.adoc[EventKey] const& key,
    xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& newTime,
    bool wait = false);
----

[.small]#xref:BloombergLP/bdlmt/TimerEventScheduler/rescheduleEvent-0c.adoc[_» more&period;&period;&period;_]#


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