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

Unified Diff: samples/dartcombat/state.dart

Issue 11827017: Update remaining usages of Completer.completeException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. 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 | « runtime/lib/mirrors_impl.dart ('k') | sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/dartcombat/state.dart
diff --git a/samples/dartcombat/state.dart b/samples/dartcombat/state.dart
index 32ea362f5b11f14e3985df74af75b7168474f48d..4a94d74c847a29d7f338d682a597c1e3455240c3 100644
--- a/samples/dartcombat/state.dart
+++ b/samples/dartcombat/state.dart
@@ -239,7 +239,7 @@ class PlayerState {
});
shot.handleException((String error) {
_recordFailedShot(x, y);
- sunk.completeException(error);
+ sunk.completeError(error);
return true;
});
// We don't actually chain sunk.cancel with shot.cancel because individual
« no previous file with comments | « runtime/lib/mirrors_impl.dart ('k') | sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698