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

Unified Diff: src/tests/site/articles/event-loop/eventloop_test2/bin/eventloop_test2.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, 2 months 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 side-by-side diff with in-line comments
Download patch
Index: src/tests/site/articles/event-loop/eventloop_test2/bin/eventloop_test2.dart
diff --git a/src/tests/site/articles/event-loop/eventloop_test2/bin/eventloop_test2.dart b/src/tests/site/articles/event-loop/eventloop_test2/bin/eventloop_test2.dart
index 8700e91c829bd3e4f978366fa5a4214660225191..927c5bb68278a58b14150749b13fbe7ff7a551dc 100644
--- a/src/tests/site/articles/event-loop/eventloop_test2/bin/eventloop_test2.dart
+++ b/src/tests/site/articles/event-loop/eventloop_test2/bin/eventloop_test2.dart
@@ -1,7 +1,7 @@
import 'dart:async';
main() {
print('main #1 of 2');
- runAsync(() => print('runAsync #1 of 3'));
+ scheduleMicrotask(() => print('microtask #1 of 3'));
new Future.delayed(new Duration(seconds:1),
() => print('future #1 (delayed)'));
@@ -10,11 +10,11 @@ main() {
.then((_) => print('future #2a'))
.then((_) {
print('future #2b');
- runAsync(() => print('runAsync #0 (from future #2b)'));
+ scheduleMicrotask(() => print('microtask #0 (from future #2b)'));
})
.then((_) => print('future #2c'));
- runAsync(() => print('runAsync #2 of 3'));
+ scheduleMicrotask(() => print('microtask #2 of 3'));
new Future(() => print('future #3 of 4'))
.then((_) => new Future(
@@ -22,6 +22,6 @@ main() {
.then((_) => print('future #3b'));
new Future(() => print('future #4 of 4'));
- runAsync(() => print('runAsync #3 of 3'));
+ scheduleMicrotask(() => print('microtask #3 of 3'));
print('main #2 of 2');
}
« no previous file with comments | « src/tests/site/articles/event-loop/eventloop_test1/bin/eventloop_test1.dart ('k') | src/tests/site/code/webui/build.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698