Tinder / StateMachine

A Kotlin and Swift DSL for finite state machine
Other
1.98k stars 128 forks source link

Handling asynchronous events #10

Open AchrafAmil opened 5 years ago

AchrafAmil commented 5 years ago

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 {} what if I do that as a side effect, would the side effect 'block' the state till the asynchronous call is done ?