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(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);

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.