I’m trying to avoid doing side effects inside the action controller method, but am struggling to figure out how to send a sequence of futures. The doc shows example of composing calls using a for comprehension that returns an arbitrary response when all steps completed, but not seeing how I can apply that to collection of futures of arbitrary size.
My naive implementation:
What I’m trying to do to improve it:
Thanks in advance.