Class SideEffect#
Defined in File SideEffect.h
Inheritance Relationships#
Base Type#
public Karana::Core::LockingBase(Class LockingBase)
Class Documentation#
-
class SideEffect : public Karana::Core::LockingBase#
The SideEffect class is a LockingBase that runs a callback whenever it is made healthy.
Public Types
-
using callback_t = std::function<void()>#
Alais for the callback function type.
Public Functions
-
SideEffect(std::string_view name, callback_t callback)#
Constructor.
- Parameters:
name – The name of the SideEffect.
callback – The callback to run whenever this SideEffect is made healthy.
-
using callback_t = std::function<void()>#