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