We run 2 threads in parallel, they perform some kind of long-term work. We know that then A will execute faster than flow B. How, after completion, does A transfer its result to flow B?
It comes to mind a head-on solution: write the results of the work of the first thread into a static variable and read it in the second thread. But it seems to me there are better ways. Maybe you know how to do this?