[#btcsignals-connection] = xref:btcsignals.adoc[btcsignals]::connection :relfileprefix: ../ :mrdocs: State object representing the liveness of a registered callback. signal::connect() returns an enabled connection which can be held and disabled in the future. == Synopsis Declared in `<util/btcsignals.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class connection; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:btcsignals/connection/2constructor.adoc[`connection`] [.small]#[constructor]# | The default constructor creates a connection with no associated signal | xref:btcsignals/connection/connected.adoc[`connected`] | Returns true if this connection was created by a signal and has not been disabled. | xref:btcsignals/connection/disconnect.adoc[`disconnect`] | If a callback is associated with this connection, prevent it from being called in the future. |=== == Friends [cols="1,4"] |=== | Name| Description | `xref:btcsignals/signal.adoc[btcsignals::signal]` | Functor for calling zero or more connected callbacks. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#