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

Unified Diff: tests/standalone/http_launch_data/http_isolate_main.dart

Issue 27215002: Very simple version of Isolates. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update spawnUri description. Created 7 years, 2 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
Index: tests/standalone/http_launch_data/http_isolate_main.dart
diff --git a/tests/standalone/http_launch_data/http_isolate_main.dart b/tests/standalone/http_launch_data/http_isolate_main.dart
index ba7a59de5838ac18109f96e89d183fa53fab5a3a..9b1d5baf61b693c8ec951147d4daf235cef7c1c0 100644
--- a/tests/standalone/http_launch_data/http_isolate_main.dart
+++ b/tests/standalone/http_launch_data/http_isolate_main.dart
@@ -4,8 +4,8 @@
import 'dart:isolate';
-main() {
- port.receive((message, replyTo) {
- replyTo.call(message);
- });
+main({message}) {
+ var data = message[0];
+ var replyTo = message[1];
+ replyTo.send(data);
}

Powered by Google App Engine
This is Rietveld 408576698