Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parallel states support #15

Closed
nsk90 opened this issue Dec 11, 2020 · 3 comments
Closed

Add parallel states support #15

nsk90 opened this issue Dec 11, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@nsk90
Copy link
Collaborator

nsk90 commented Dec 11, 2020

No description provided.

@nsk90
Copy link
Collaborator Author

nsk90 commented May 24, 2021

done in c1c7a3d

@nsk90 nsk90 closed this as completed May 24, 2021
@ShraddhaGade
Copy link

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
Copy link
Collaborator Author

nsk90 commented 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

@nsk90 nsk90 added the enhancement New feature or request label Jul 22, 2022
@KStateMachine KStateMachine locked and limited conversation to collaborators Jul 22, 2022
@nsk90 nsk90 converted this issue into discussion #37 Jul 22, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants