State object representing the liveness of a registered callback. signal::connect() returns an enabled connection which can be held and disabled in the future.

Synopsis

Declared in <util/btcsignals.h>

class connection;

Member Functions

Name

Description

connection [constructor]

The default constructor creates a connection with no associated signal

connected

Returns true if this connection was created by a signal and has not been disabled.

disconnect

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

Friends

Name

Description

btcsignals::signal

Functor for calling zero or more connected callbacks.

Created with MrDocs