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 thought fsm.jump() will succeed and fsm's state will be sky and fsm.run() will fail because fsm's state has already been changed to sky.
But the result is as follows.
jump office { name: 'jump', from: 'here', to: 'sky', args: [] }
run office { name: 'run', from: 'here', to: 'office', args: [] }
jump office !?
jump can only go to the sky...
I know jump() and run() are not connected with a promise chain so while jump() was being processed, run() was executed and run()'s result was taken effect at last.
I believe run() should throw an error or return a promise reject when it's called while other events are being processed..
I think this is very dangerous.
Cheers
The text was updated successfully, but these errors were encountered:
Hi there,
Please take a look at this simple code.
I thought fsm.jump() will succeed and fsm's state will be sky and fsm.run() will fail because fsm's state has already been changed to sky.
But the result is as follows.
jump office !?
jump can only go to the sky...
I know jump() and run() are not connected with a promise chain so while jump() was being processed, run() was executed and run()'s result was taken effect at last.
I believe run() should throw an error or return a promise reject when it's called while other events are being processed..
I think this is very dangerous.
Cheers
The text was updated successfully, but these errors were encountered: