GenericSyncObserver¶
-
template<typename ...
FunctionArgs
>
classkanzi::connect
::
GenericSyncObserver
¶ Generic observer which can be used to receive notification from GenericSyncPublisher, callback function arguments are template arguments.
Public Functions
-
inline explicit
GenericSyncObserver
(function<void(FunctionArgs&&...)> actualCallback)¶ Constructor.
- Parameters
actualCallback – Function in the interested party that will be called when publisher publishes
-
virtual
~GenericSyncObserver
() = default¶ dtor
-
inline void
notify
(FunctionArgs&&... args)¶ Notification used by the publisher.
- Parameters
args – The function arguments passed to the actual callback
-
inline explicit