Why future sequence runs this way?

Issue Following code: void main() async { print("A"); await Future(() async { // Main future print("B"); Future(()=>print("C")); Future.microtask(()=>print("D")); await Future(()=>print("E")); print("F"); }); print("G"); } shows this sequence: A B D C E F G I’m expecting this sequence: A B

Continue reading