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); |
+ }); |
}); |
} |