KStateMachine / kstatemachine

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

Initial argument for start #40

Closed kwasny2 closed 1 year ago

kwasny2 commented 1 year ago

Could you provide an optional argument for start method in StateMachine interface (in the similar way as it in processEvent method)? Optional argument should be passed to initialState in state machine.

fun start(argument: Any? = null)

I can live without it, but it will would be nice to have such parameter to avoid workaround.

nsk90 commented 1 year ago

Done in v0.11.0