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

Unified Diff: samples/isolate_html/IsolateSample.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 | « runtime/vm/snapshot_test.dart ('k') | samples/leap/leap_leg.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/isolate_html/IsolateSample.dart
diff --git a/samples/isolate_html/IsolateSample.dart b/samples/isolate_html/IsolateSample.dart
index a4c75e0ac7cf3d14f79b955f428a74b3d0481fbc..54043b7ede6300a0feca131cf7b26d8619c40e82 100644
--- a/samples/isolate_html/IsolateSample.dart
+++ b/samples/isolate_html/IsolateSample.dart
@@ -71,9 +71,8 @@ class IsolateSample {
String isolateName = buttonText[buttonText.length - 1];
String greeting = document.query("#greetingText").dynamic.value;
var message = { "id": MessageId.GREETING, "args" : [ greeting ] };
- ports[isolateName].call(message).receive(
- (var msg, SendPort replyTo) {
- replyElement.text = msg;
+ ports[isolateName].call(message).then((var msg) {
+ replyElement.text = msg;
});
});
}
« no previous file with comments | « runtime/vm/snapshot_test.dart ('k') | samples/leap/leap_leg.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698