Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/tests/site/articles/event-loop/eventloop_test1/bin/eventloop_test1.dart

Issue 27412003: runAsync name change (Closed) Base URL: https://github.com/dart-lang/dartlang.org.git@master
Patch Set: add links to event loop article; add update date Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698