I\'m writting some kind of bot (command line application) and I\'m having trouble with async execution when I\'m using \"forEach\" method. Here is a simplified code of what
I don't think it's possible to achieve what you want with the forEach method. However it will work with a for loop. Example;
forEach
for
asyncOne() async { print("asyncOne start"); for (num number in [1, 2, 3]) await asyncTwo(number); print("asyncOne end"); }