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

Unified Diff: samples/dartcombat/setup.dart

Issue 12253011: Reapply remove setInterval. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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
« no previous file with comments | « samples/calculator/calculator.dart ('k') | samples/isolate_html/isolate_sample.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/dartcombat/setup.dart
diff --git a/samples/dartcombat/setup.dart b/samples/dartcombat/setup.dart
index 73e1ae5f6a77b71df2a94e1f478956a96805c89d..c81212d34c22ce04858f5e0490e3bb437c6fe983 100644
--- a/samples/dartcombat/setup.dart
+++ b/samples/dartcombat/setup.dart
@@ -80,13 +80,13 @@ class FlakyProxy {
proxy = new ReceivePort();
proxy.receive((message, SendPort reply) {
- window.setTimeout(() {
+ new Timer(const Duration(milliseconds: 200), () {
if (randomlyFail()) {
reply.send(const [false, "There was an error"], null);
} else {
_target.send(message, reply);
}
- }, 200);
+ });
});
}
« no previous file with comments | « samples/calculator/calculator.dart ('k') | samples/isolate_html/isolate_sample.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698