I have a function that runs other functions ( inner functions ). So each inner function is step of main function.
I have to update progress each time inner function end to run. Each inner function accepts current progress as parameter and i do that manually.
Problem is that i have about 10 main function while number of inner function of each main function changes.
Is there a way to introduce dynamic value of some kind in this flow ?
Example:
public void Run() {
DoWork1(33);
DoWork2(66);
Dowork3(100);
}
public void Run() {
DoWork1(25);
DoWork4(50);
Dowork5(75);
Dowork2(100);
}
It’s not really clear what you mean, but perhaps you want:
Then call it with: