[#BloombergLP-bdlmt-SignalerConnection-disconnectAndWait]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/SignalerConnection.adoc[SignalerConnection]::disconnectAndWait
:relfileprefix: ../../../
:mrdocs:

Disconnect the associated slot and wait for in&hyphen;progress signals&period;

== Synopsis

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

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

== Description

Disconnect the associated slot&period; If the slot was already disconnected, this function has no effect&period; This function blocks the calling thread pending completion of signals emitted on the signaler by any thread, even if the slot was disconnected prior to this call&period; Any signal emitted on the corresponding signaler that happens after this call to `disconnect` completes will not emit to the slot&period; Throws nothing&period; The behavior is undefined if this method is called from any slot&period; Note that it is unspecified if any signal emitted on the signaler that begins before this function completes will call the slot&period;


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