[#BloombergLP-bdlmt-Signaler-connect] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/Signaler.adoc[Signaler]::connect :relfileprefix: ../../../ :mrdocs: Connect the specified `slot`, a callable object which must meet the `Slot Object Requirements` described in the component documentation, to this signaler. Optionally specify a `group` used to order slots upon invocation. Return an instance of `SignalerConnection` representing the created connection. This function meets the strong exception guarantee. Note that the connected slot may be called by a signal emitted from another thread before this function completes. Also note that it is unspecified whether connecting a slot while the signaler is emitting will result in the slot being called immediately. Note that `t_FUNC` may have a return type other than `void`, but in that case, when the slot is called, the return value will be discarded. == Synopsis Declared in `<bdlmt_signaler.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_FUNC> xref:BloombergLP/bdlmt/SignalerConnection.adoc[SignalerConnection] connect( t_FUNC&& slot, int group = 0); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#