You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to run them in parallel, but stop waiting for inputs if any of them get a specific response (e.g. answer = deny).
How can I do that?
Current approach is to use a for_each and then throw { ... } when I get the deny. I expected that to break the for_each loop for me.
But - currently it seems to wait for each instance of the for_each to complete before breaking out based on the throw.
Should throw break the for_each loop? I believe an error/throw breaks execution if there are other parallel steps running, so I'd expect it to behave the same here?
I have a
for_each
loop for an input step.I'd like to run them in parallel, but stop waiting for inputs if any of them get a specific response (e.g. answer = deny).
How can I do that?
Current approach is to use a
for_each
and thenthrow { ... }
when I get the deny. I expected that to break the for_each loop for me.But - currently it seems to wait for each instance of the for_each to complete before breaking out based on the throw.
Should throw break the for_each loop? I believe an error/throw breaks execution if there are other parallel steps running, so I'd expect it to behave the same here?
The text was updated successfully, but these errors were encountered: