Create a guard by moving from connection.

Synopsis

Declared in <bdlmt_signaler.h>

explicit
SignalerConnectionGuard(
    bslmf::MovableRef<SignalerConnection> connection,
    bool waitOnDisconnect = false) noexcept;

Description

Create a SignalerConnectionGuard that refers to the same slot, if any, as the specified connection, which is left in an unspecified state. Optionally specify waitOnDisconnect indicating whether disconnect or disconnectAndWait will be called on the slot, if any, managed by this object upon destruction or assignment. Throws nothing.

Parameters

Name

Description

connection

connection to move from

waitOnDisconnect

if true, use disconnectAndWait on release

Created with MrDocs