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>
template<typename Callable>
connection
connect(Callable&& func);
Return Value
A connection that can be held and disabled later.
Template Parameters
Name |
Description |
Callable |
The type of the callback, storable in a std::function. |
Parameters
Name |
Description |
func |
The callback to connect. |
Created with MrDocs