| OLD | NEW |
| 1 import 'dart:async'; | 1 import 'dart:async'; |
| 2 main() { | 2 main() { |
| 3 print('main #1 of 2'); | 3 print('main #1 of 2'); |
| 4 runAsync(() => print('runAsync #1 of 2')); | 4 scheduleMicrotask(() => print('microtask #1 of 2')); |
| 5 | 5 |
| 6 new Future.delayed(new Duration(seconds:1), | 6 new Future.delayed(new Duration(seconds:1), |
| 7 () => print('future #1 (delayed)')); | 7 () => print('future #1 (delayed)')); |
| 8 new Future(() => print('future #2 of 3')); | 8 new Future(() => print('future #2 of 3')); |
| 9 new Future(() => print('future #3 of 3')); | 9 new Future(() => print('future #3 of 3')); |
| 10 | 10 |
| 11 runAsync(() => print('runAsync #2 of 2')); | 11 scheduleMicrotask(() => print('microtask #2 of 2')); |
| 12 | 12 |
| 13 print('main #2 of 2'); | 13 print('main #2 of 2'); |
| 14 } | 14 } |
| OLD | NEW |