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

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: Address comments. 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
« no previous file with comments | « tests/lib/platform/isolate_test.dart ('k') | tests/standalone/http_launch_data/http_launch_main.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..ad6306ab1e0da2f77e18121299b87450fe747314 100644
--- a/tests/standalone/http_launch_data/http_isolate_main.dart
+++ b/tests/standalone/http_launch_data/http_isolate_main.dart
@@ -4,8 +4,7 @@
import 'dart:isolate';
-main() {
- port.receive((message, replyTo) {
- replyTo.call(message);
- });
+main(List<String> args, SendPort replyTo) {
+ var data = args[0];
+ replyTo.send(data);
}
« no previous file with comments | « tests/lib/platform/isolate_test.dart ('k') | tests/standalone/http_launch_data/http_launch_main.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698