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

Unified Diff: samples/dartcombat/player.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/dartcombat/grids.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/player.dart
diff --git a/samples/dartcombat/player.dart b/samples/dartcombat/player.dart
index 21eb1a25a1208c5f24bb28f5ea72e661316f32d3..294e217618571c9f1efcfb5a8c90259f333f63fd 100644
--- a/samples/dartcombat/player.dart
+++ b/samples/dartcombat/player.dart
@@ -75,7 +75,7 @@ class EnemyImpl implements Enemy {
Future<int> ready() {
Completer<int> res = new Completer<int>();
return portToEnemy.call({ "action" : MessageIds.ENEMY_IS_READY })
- .transform((message) {
+ .then((message) {
if (!message[0]) throw message[1];
return 0;
});
@@ -84,7 +84,7 @@ class EnemyImpl implements Enemy {
Future<int> shoot(int x, int y) {
Completer<int> res = new Completer<int>();
return portToEnemy.call({ "action" : MessageIds.SHOOT, "args" : [x, y] })
- .transform((message) {
+ .then((message) {
if (!message[0]) throw message[1];
return message[1][0];
});
« no previous file with comments | « samples/dartcombat/grids.dart ('k') | samples/isolate_html/isolate_sample.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698