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

Unified Diff: client/samples/dartcombat/setup.dart

Issue 8370031: Fix for events fired on different isolates. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove Isolate.bind. Created 9 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: client/samples/dartcombat/setup.dart
diff --git a/client/samples/dartcombat/setup.dart b/client/samples/dartcombat/setup.dart
index 63affdb89ddb9d4d2c3d49008684d820efcf6c35..d77febba4021d8c8b66fe5c391c468fa4a57b311 100644
--- a/client/samples/dartcombat/setup.dart
+++ b/client/samples/dartcombat/setup.dart
@@ -82,13 +82,13 @@ class FlakyProxy {
proxy = new ReceivePort();
proxy.receive((message, SendPort reply) {
- window.setTimeout(Isolate.bind(() {
+ window.setTimeout(() {
if (randomlyFail()) {
reply.send(const [false, "There was an error"], null);
} else {
_target.send(message, reply);
}
- }), 200);
+ }, 200);
});
}

Powered by Google App Engine
This is Rietveld 408576698