I actually think this is a genius way of handling this :) So you want to iterate over apis and wait for handleAPI to finish correct? One way would be spawing an Isolate and having that process the work, then when you get a response the work is done move onto the next element, but its going to be programmed in the same nature you have here.