Add event recording mechanism implementation using Kotlinx.Serialization
, allowing to serialize and restore state machines 💾.
The implementation is located in new separated artefact kstatemachine.serialization
Some DSL methods like addState
, addInitialState
etc became suspendable
. This allows calling suspend functions in a moment of state machine creation if necessary, as all those DSL method has a trailing lambda as a last argument.
docs https://kstatemachine.github.io/kstatemachine/pages/persistence.html
Full Changelog: v0.31.1...v0.32.0