KStateMachine / kstatemachine

KStateMachine is a powerful Kotlin Multiplatform library with clean DSL syntax for creating complex state machines and statecharts driven by Kotlin Coroutines.
https://kstatemachine.github.io/kstatemachine/
Boost Software License 1.0
358 stars 21 forks source link

Add simple API to listen to states and transitions after statemachine creation #7

Closed nsk90 closed 3 years ago

nsk90 commented 3 years ago

297a7c5 Adds findState() function to enable search by name (this is not safe way)

Another option for a user is to hold a reference to a state somewhere (this is very explicit).

Question how to find states without a name is still open.

nsk90 commented 3 years ago

in v0.2.5 added methods to get State and Transition after state machine creation