btcsignals::signal::connect

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>
[[requires_capability(0x7f9521bf8168), requires_capability(0x7f9500a48038), requires_capability(0x7f951f8ebdb8), requires_capability(0x7f950d443aa8), requires_capability(0x7f95133b62e8), requires_capability(0x7f95231b7278), requires_capability(0x7f9516ce7ac8), requires_capability(0x7f9503ad1f18)]]
connection
connect(Callable&& func);

Return Value

A connection that can be held and disabled later.

Template Parameters

NameDescription
CallableThe type of the callback, storable in a std::function.

Parameters

NameDescription
funcThe callback to connect.