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(0x7ff38e362938), requires_capability(0x7ff3903823b8), requires_capability(0x7ff3897ec798), requires_capability(0x7ff3807b4708), requires_capability(0x7ff37a113b08), requires_capability(0x7ff364614398), requires_capability(0x7ff35e53bc78), requires_capability(0x7ff3825c93d8)]]
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. |