btcsignals::connection::disconnect

If a callback is associated with this connection, prevent it from being called in the future.

Synopsis

Declared in <util/btcsignals.h>

void
disconnect();

Description

If a connection is disabled as part of a signal's callback function, it will not be executed in the current signal invocation.

Note that disconnected callbacks are not removed from their owning signals here. They are garbage collected in signal::connect().