[#btcsignals-connection-disconnect] = xref:btcsignals.adoc[btcsignals]::xref:btcsignals/connection.adoc[connection]::disconnect :relfileprefix: ../../ :mrdocs: If a callback is associated with this connection, prevent it from being called in the future. == Synopsis Declared in `<util/btcsignals.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void disconnect(); ---- == Description If a connection is disabled as part of a signal's callback function, it will _not_ be executed in the current signal invocation. Note that disconnected callbacks are not removed from their owning signals here. They are garbage collected in signal::connect(). [.small]#Created with https://www.mrdocs.com[MrDocs]#