Tinder / StateMachine

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

onEnter and side effects #23

Open crucian11 opened 5 years ago

crucian11 commented 5 years ago

First of all, thanks for this awesome library. And I have a little question about underlying theory. Is onEnter callback applicable for side effects (in terms of finite state machine theory)? Or should I create a model for every side effect and perform them exclusively in onTransition callback? Thanks in advance.