I have a loop which calls a method that does stuff asynchronously. This loop can call the method many times. After this loop, I have another loop that needs to be executed only when all the asynchrono
In this case I created a recursive promise function that is used to call different api urls. How do make the switch-case option in this code not too long?