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

Unified Diff: samples/leap/leap_leg.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/isolate_html/IsolateSample.dart ('k') | samples/proxy/promise.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/leap/leap_leg.dart
diff --git a/samples/leap/leap_leg.dart b/samples/leap/leap_leg.dart
index 874711b19e4089e1b285ef36847d32e2816777a6..20ef72d4119fb5781b0c05b3c52f9ff8d129410b 100644
--- a/samples/leap/leap_leg.dart
+++ b/samples/leap/leap_leg.dart
@@ -14,13 +14,13 @@ compilerIsolate(port) {
main() {
dom.document.getElementById('status').innerHTML = 'Initializing compiler';
final iframe = dom.document.getElementById('isolate');
- setOutline(msg, _) {
+ setOutline(msg) {
dom.document.getElementById('out').innerHTML = msg;
}
dom.spawnDomIsolate(iframe.contentWindow, 'compilerIsolate').then((sendPort) {
update(_) {
String text = dom.document.getElementById('code').innerText;
- sendPort.call(text).receive(setOutline);
+ sendPort.call(text).then(setOutline);
dom.document.getElementById('status').innerHTML = 'Ready';
}
update(null);
« no previous file with comments | « samples/isolate_html/IsolateSample.dart ('k') | samples/proxy/promise.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698