[#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&period;

== Synopsis

Declared in `&lt;util&sol;btcsignals&period;h&gt;`

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

== Description

If a connection is disabled as part of a signal&apos;s callback function, it will _not_ be executed in the current signal invocation&period;

Note that disconnected callbacks are not removed from their owning signals here&period; They are garbage collected in signal&colon;&colon;connect()&period;


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