[#btcsignals-signal-connect] = xref:btcsignals.adoc[btcsignals]::xref:btcsignals/signal.adoc[signal]::connect :relfileprefix: ../../ :mrdocs: Connect a new callback to the signal. A forwarding callable accepts anything that can be stored in a std::function. == Synopsis Declared in `<util/btcsignals.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename Callable> [[requires_capability(0x7f2e358a30a8), requires_capability(0x7f2e3039c858), requires_capability(0x7f2e2b9df748), requires_capability(0x7f2e41adc948), requires_capability(0x7f2e321206a8), requires_capability(0x7f2e41e5ad38), requires_capability(0x7f2e27b0c398), requires_capability(0x7f2e411bb788)]] xref:btcsignals/connection.adoc[connection] connect(Callable&& func); ---- == Return Value A connection that can be held and disabled later. == Template Parameters [cols="1,4"] |=== | Name| Description | *Callable* | The type of the callback, storable in a std::function. |=== == Parameters [cols="1,4"] |=== | Name| Description | *func* | The callback to connect. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#