[akka-user] FSM gets a message before a transition finishes?

2014-04-30 Thread Eugene Dzhurinsky
Hello! I'm not sure if it's possible at all, but if there's a FSM actor A, which is in state S1, then it receives a message M, which triggers a transition to state S2, and in onTransation the actor A sends some messages to another actor B. The actor B process message and sends reply R to

Re: [akka-user] FSM gets a message before a transition finishes?

2014-04-30 Thread Konrad 'ktoso' Malawski
Hello Eugene, The scenario you have outlined can not happen - you’re safe from this kind of race thanks to the Actor’s properties. The transition as well as calling the transition handlers for the new state are all still happening during Actor A’s receive, which means that it is guaranteed