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>
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. |