In our project, we have UI and logic (which can be represented as a finite machine). The transitions between some steps in this step are long (IO-bound). We do not want to steal our UI thread for the entire transition. Therefore, we are looking for a way to perform these transitions in a separate thread, and then update the interface after the transition is completed.
I am currently evaluating the statechart formatting library as one of the options for implementing this logic, and I would like to ask how to use this function of long jumps correctly using it?
Thanks.
source
share