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

Unified Diff: samples/proxy/proxy.dart

Issue 9652001: SendPort + ReceivePort changes: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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/proxy/promise.dart ('k') | samples/tests/samples/src/proxy/PromiseBasedTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/proxy/proxy.dart
diff --git a/samples/proxy/proxy.dart b/samples/proxy/proxy.dart
index 3d72d11dd6a43137972c10539eedb6edc9629105..da8077abf0511ab220538f848648eccfa8ed2941 100644
--- a/samples/proxy/proxy.dart
+++ b/samples/proxy/proxy.dart
@@ -35,9 +35,7 @@ class RpcProxy {
Completer completer = new Completer();
futurePort.then((SendPort port) {
args = _filterArgs(args);
- port.call({"command" : command, "args" : args}).receive(
- (value, ignoreReplyTo) {
- assert(ignoreReplyTo === null);
+ port.call({"command" : command, "args" : args}).then((value) {
value = _filterException(value);
if (adjustReply != null) {
// give derived proxy class a chance to transate SendPort to
« no previous file with comments | « samples/proxy/promise.dart ('k') | samples/tests/samples/src/proxy/PromiseBasedTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698