Connect a new callback to the signal. A forwarding callable accepts anything that can be stored in a std::function.
Declared in <util/btcsignals.h>
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)]]
connection
connect(Callable&& func);
A connection that can be held and disabled later.
| Name | Description |
|---|---|
| Callable | The type of the callback, storable in a std::function. |
| Name | Description |
|---|---|
| func | The callback to connect. |