-
Notifications
You must be signed in to change notification settings - Fork 88
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
Does SyncExecutor assumed to have a concurrent access #7
Comments
Correct. |
If it thread-safe why you need to use queue in SyncExecutor? |
I wanted to isolate task execution. Let's say we have handler for state State and in that handler we trigger event Event that moves FSM into state State2 that also has a handler. With the queue, first, handler for State will be fully executed, and then, if event was triggered, handler for State2. Also, SyncExecutor was ment mainly for unit tests, to avoid thread creation / waiting / termination but at the same time behave the same way as AsyncExecutor does. |
Ok, i was wrong. |
SyncExecutor seems to be implemented in a thread-safe manner. Right?
The text was updated successfully, but these errors were encountered: