Skip to content
RED SAGSkills
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');
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions