Skip to content

Add parallel states support #15

Closed
Closed

Description

@nsk90
No description provided.

Activity

  1. nsk90 commented on May 24, 2021

    @nsk90
    CollaboratorAuthor

    done in c1c7a3d

  2. ShraddhaGade commented on Jul 22, 2022

    @ShraddhaGade

    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"
    }

  3. nsk90 commented on Jul 22, 2022

    @nsk90
    CollaboratorAuthor

    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

  4. locked and limited conversation to collaborators on Jul 22, 2022
  5. converted this issue into a discussion #37 on Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions