Maki
|
You can ask maki::machine
to call hooks before or after it processes specific events.
These hooks are configured by calling overloads and variants of the following functions:
The pre hook is useful when you need to define a reaction to an event that is independent from the active states. For example:
The post hook can be used to handle the case where an event hasn't triggered any transition (neither external nor local). For example:
You can add as many hook as you want for different event types or event type sets.