StateMachine icon indicating copy to clipboard operation
StateMachine copied to clipboard

Handling asynchronous events

Open AchrafAmil opened this issue 6 years ago • 0 comments

Do you support asynchronous event handling ?

I mean, does the transition wait for the side effect to complete to change state ?

I would like to do a network call on Event before applying a transition. Since I can't do it inside the on<Event.Foo> {} what if I do that as a side effect, would the side effect 'block' the state till the asynchronous call is done ?

AchrafAmil avatar Mar 05 '19 18:03 AchrafAmil