You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @nsk90 How can I use in my states?? I mean that I have one state and in that state I want make child state to be use Parallelly.
AddState(State1){
"run all states here parelle"
}
Activity
nsk90 commentedon May 24, 2021
done in c1c7a3d
ShraddhaGade commentedon Jul 22, 2022
Hi @nsk90 How can I use in my states?? I mean that I have one state and in that state I want make child state to be use Parallelly.
AddState(State1){
"run all states here parelle"
}
nsk90 commentedon Jul 22, 2022
Hi, in your case it should be set in State1 base class constructor argument.
like this:
object State1 : DefaultState("state1", childMode = ChildMode.PARALLEL)you can find docs here https://github.com/nsk90/kstatemachine/wiki#parallel-states
and some other code usages in tests: https://github.com/nsk90/kstatemachine/blob/master/kstatemachine/src/test/kotlin/ru/nsk/kstatemachine/ParallelStatesTest.kt