[#BloombergLP-bdlmt-TimerEventScheduler-cancelAllEvents] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/TimerEventScheduler.adoc[TimerEventScheduler]::cancelAllEvents :relfileprefix: ../../../ :mrdocs: Cancel all the events. If the optionally specified `wait` is true, then ensure any event still in this scheduler is either cancelled or has been dispatched before this call returns. If this method is being invoked from the dispatcher thread then the `wait` is ignored to avoid deadlock. == Synopsis Declared in `<bdlmt_timereventscheduler.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void cancelAllEvents(bool wait = false); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#