KStateMachine / kstatemachine

KStateMachine is a Kotlin DSL library for creating state machines and statecharts.
https://kstatemachine.github.io/kstatemachine/
Boost Software License 1.0
340 stars 19 forks source link

Add matchers support for transition Event types #5

Closed nsk90 closed 3 years ago

nsk90 commented 3 years ago

Now Event type argument of Transition is matched as "instance of". So there is no way to use Event hierarchy in transitions of same state.

nsk90 commented 3 years ago

185e53bbc623fed1c41f576a777c428d516c96e2 adds matchers support, but there is no docs and tests, as I am not sure that current API is good enough.

nsk90 commented 3 years ago

done in 11eeef4f