Closed marceloomens closed 8 years ago
I am fairly sure we support sync_send_event/2
. Did you remember to change your state handling function to the arity-3 version (action
, from
, and state
)? If not try adding _from
as the second argument.
Check out the turnstile example. I use and handle sync_send_event/2
a couple of times in there :)
I just reread your description...I think that you have misspelled the function. It is sync_send_event/2
, not send_sync_event/2
, sync before send. Does that solve the issue?
yeah @marceloomens, @gausby is correct - I think you have a typo. Gonna close this issue, please open another one if you still have a problem
I've just ported my code to use
GenFSM.send_sync_event/2
instead ofGenFSM.send_event/2
. At runtime the VM complains that:There seems to be a problem with synchronously executed state machines.