Create a guard by moving from connection.
Declared in <bdlmt_signaler.h>
explicit
SignalerConnectionGuard(
bslmf::MovableRef<SignalerConnection> connection,
bool waitOnDisconnect = false) noexcept;
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.
| Name | Description |
|---|---|
| connection | connection to move from |
| waitOnDisconnect | if true, use disconnectAndWait on release |