Question about multiple destination [concurrency]
See original GitHub issueI know that multiple source is correct and defined as follow:
transition_1 = {'trigger': 'jump', 'source': ['a','b'], 'dest': 'c'}
But when it comes to multiple destination, it’s wrong.
transition_2 = {'trigger': 'jump', 'source': 'a', 'dest': ['b','c']}
I don’t know how to implement using this library. Anyone can give me some ideas? or add this feature to this library? Welcome to discuss.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Java Multithreading Concurrency Interview Questions and ...
Java Multithreading Interview Questions and Answers · What is the difference between Process and Thread? · What are the benefits of multi-threaded ...
Read more >Multithreading and Concurrency Interview Questions with ...
Multithreading and concurrency questions are an essential part of any ... Concurrency Interview Questions with Answers | Multiple Concepts.
Read more >Interview Questions on Concurrency, GCD, Operation Queue
This is the part 6 of the series "Mastering Concurrency in iOS", and in this part, I've focused on interview questions related to ......
Read more >Concurrency - Science topic
I am looking for some comprehensive survey over multi-version concurrency control techniques. Relevant answer.
Read more >Concurrency Explained: How to Build a Multi-Threaded ...
Serial and concurrent affect the destination — the queue in which your work has been submitted to run. This is in contrast to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Since the above mentioned ‘workaround’ does not satisfy proper concurrency, I add ‘concurrent states’ as a feature for 0.7.0. This requires some significant changes in the nested states extension but I assume this tradeoff should be worth it since there is a lack of (Python) state machine libraries that support concurrency.
transition 0.8.0 now supports parallel states as mentioned and illustrated in #371. Having parallel states is solved by using nested states with the
parallel
keyword.Transitions with mutliple destinations are not supported though. I opted for the nested solution since this is how it is defined in state charts as far as I can tell and I could also not think of a custom
transitions
-way of definining scopes and how to determine when concurrent states should be exited again.