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

Unified 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, 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_test1/bin/eventloop_test1.dart
diff --git a/src/tests/site/articles/event-loop/eventloop_test1/bin/eventloop_test1.dart b/src/tests/site/articles/event-loop/eventloop_test1/bin/eventloop_test1.dart
index 287888224dd7ff635cbe86d817967a960a4e5244..504394992dfeebee2da7493b2c7c2e8a3112e437 100644
--- a/src/tests/site/articles/event-loop/eventloop_test1/bin/eventloop_test1.dart
+++ b/src/tests/site/articles/event-loop/eventloop_test1/bin/eventloop_test1.dart
@@ -1,14 +1,14 @@
import 'dart:async';
main() {
print('main #1 of 2');
- runAsync(() => print('runAsync #1 of 2'));
+ scheduleMicrotask(() => print('microtask #1 of 2'));
new Future.delayed(new Duration(seconds:1),
() => print('future #1 (delayed)'));
new Future(() => print('future #2 of 3'));
new Future(() => print('future #3 of 3'));
- runAsync(() => print('runAsync #2 of 2'));
+ scheduleMicrotask(() => print('microtask #2 of 2'));
print('main #2 of 2');
}

Powered by Google App Engine
This is Rietveld 408576698