hard20 pts · first answer countsdartasync-programming
Dart microtask and event order
In what order does this Dart program print its letters?
import 'dart:async';
void main() {
print('A');
Future(() => print('B'));
scheduleMicrotask(() => print('C'));
Future.value().then((_) => print('D'));
print('E');
}Discussion 0
Join free to post in the discussion.