You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, many thanks for this very useful and well-written module.
It would be good to have another callback, oneveryevent() (or onanyevent()), that is run when any event is triggered.
In my use case, my FSM has events like "receive_command_packet", "receive_ack_packet", "receive_error_packet", etc. Each time I receive a packet, an FSM event is triggered, and I need to store the last received packet in a data member.
The current ugly workaround is to define on_event_() callbacks for every event in my FSM.
The text was updated successfully, but these errors were encountered:
Firstly, many thanks for this very useful and well-written module.
It would be good to have another callback,
oneveryevent()
(oronanyevent()
), that is run when any event is triggered.In my use case, my FSM has events like "receive_command_packet", "receive_ack_packet", "receive_error_packet", etc. Each time I receive a packet, an FSM event is triggered, and I need to store the last received packet in a data member.
The current ugly workaround is to define
on_event_()
callbacks for every event in my FSM.The text was updated successfully, but these errors were encountered: