[#BloombergLP-bdlmt-Signaler_SlotNode-disconnectAndWait]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/Signaler_SlotNode.adoc[Signaler&lowbar;SlotNode]::disconnectAndWait
:relfileprefix: ../../../
:mrdocs:

Disconnect this slot and wait for in&hyphen;progress signals to finish&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
disconnectAndWait() noexcept override;
----

== Description

Disconnect this slot and block the calling thread pending the completion of signals being emitted on the signaler by any other threads&period; If the slot was already disconnected, this function has no effect on the slot&period; Throws nothing&period; The behavior is undefined if this function is called from a slot on the same signaler&period; Note that it is guaranteed that this slot will not be called by a signal on the same signaler that begins after this function completes, whether `wait` is `true` or not&period;


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