Skip to content

Sealed classes for states for concurrent state machines #104

Answered by nsk90
Lukasmp3 asked this question in Q&A
Discussion options

You must be logged in to vote

I don't recommend using object states in multithreading context. Use separate state instances. I suppose this will help.

Events are immutable and are not tied to StateMachine, so you can use them whatever you need.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Lukasmp3
Comment options

Answer selected by Lukasmp3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants