Class SideEffect#

Inheritance Relationships#

Base Type#

Class Documentation#

class SideEffect : public Karana::Core::LockingBase#

The SideEffect class is a LockingBase that runs a callback whenever it is made current.

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 current.