[#BloombergLP-bdlmt-EventScheduler-cancelEventAndWait-05]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/EventScheduler.adoc[EventScheduler]::cancelEventAndWait
:relfileprefix: ../../../
:mrdocs:

`cancelEventAndWait` overloads

== Synopses

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

Cancel the event referred to by `handle`, release it, and wait&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/bdlmt/EventScheduler/cancelEventAndWait-07.adoc[cancelEventAndWait](xref:BloombergLP/bdlmt/EventScheduler/EventHandle.adoc[EventHandle]* handle);
----

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

Same as the preceding overload, for a recurring&hyphen;event handle&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/bdlmt/EventScheduler/cancelEventAndWait-09.adoc[cancelEventAndWait](xref:BloombergLP/bdlmt/EventScheduler/RecurringEventHandle.adoc[RecurringEventHandle]* handle);
----

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

Cancel the event referred to by `handle` and wait&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/bdlmt/EventScheduler/cancelEventAndWait-01.adoc[cancelEventAndWait](xref:BloombergLP/bdlmt/EventScheduler/Event.adoc[Event] const* handle);
----

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

Same as the preceding overload, for a recurring event&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/bdlmt/EventScheduler/cancelEventAndWait-00.adoc[cancelEventAndWait](xref:BloombergLP/bdlmt/EventScheduler/RecurringEvent.adoc[RecurringEvent] const* handle);
----

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

== Return Value

0 on successful cancellation, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *handle*
| event handle to cancel and release
|===


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