Reputation: 661
I'm using DO UNTIL action to iterate over some data until a condition is met to exit the loop. I'm bit confused with the usage of "Count" and "Timeout". Does the count mean the loop iterates only 10 times or does it mean number of retries if it's a long running process.
In my testing I found the loop runs for the value specified in the count (in this case 10). If I want to iterate over a dynamic collection when the count is not known how do I set count?
Upvotes: 3
Views: 2433
Reputation: 3111
Setting count/timeoutis the equivalent of
int c = 0;
Time t = utcNow();
do {
c++;
} until (foo || c >= 10 || t.addTimeSpan(PT1H) <= utcNow();
Upvotes: 1