[#BloombergLP-bdlmt-TimerEventScheduler-rescheduleEvent-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/TimerEventScheduler.adoc[TimerEventScheduler]::rescheduleEvent :relfileprefix: ../../../ :mrdocs: Reschedule the event identified by handle to a new time. == Synopsis Declared in `<bdlmt_timereventscheduler.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int rescheduleEvent( xref:BloombergLP/bdlmt/TimerEventScheduler/Handle.adoc[Handle] handle, xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& newTime, bool wait = false); ---- == Description Reschedule the event having the specified `handle` at the specified `newTime`. Optionally use the specified `key` to uniquely identify the event. 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. Return 0 on successful reschedule, and a non‐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. If this method is being invoked from the dispatcher thread then the `wait` is ignored to avoid deadlock. The `newTime` is an absolute time represented as an interval from some epoch, which is detemined by the clock indicated at construction (see []Clock‐Types)). == Return Value 0 on successful reschedule, and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *handle* | identifier of the event to reschedule | *newTime* | new absolute dispatch time | *wait* | if true, wait until the event is rescheduled or dispatched |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#