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
I'm new to this FSM so maybe there is already a solution for this case but anyways I'd appreciate the help.
Given the following FSM:
A -->|Event1| B
A -->|Event2| C
B -->|Event2| C
How do I get a callback when transitioning from A to C only?
If I use enter_C": func(_ context.Context, e *Event) I will have to switch on e.Event inside, and same if I use leave_A.
Is there a way to request a callback like leave_A_enter_C or leave_A_before_Event2?
The text was updated successfully, but these errors were encountered:
I'm new to this FSM so maybe there is already a solution for this case but anyways I'd appreciate the help.
Given the following FSM:
How do I get a callback when transitioning from A to C only?
If I use
enter_C": func(_ context.Context, e *Event)
I will have to switch one.Event
inside, and same if I useleave_A
.Is there a way to request a callback like
leave_A_enter_C
orleave_A_before_Event2
?The text was updated successfully, but these errors were encountered: